示例#1
0
 def test_not_in_str(self) -> None:
     self.assertEqual(str(NotIn(Variable("X"), Variable("Y"))), "X not in Y")
示例#2
0
 def test_not_in_simplified(self) -> None:
     self.assertEqual(
         NotIn(Variable("X"), Add(Number(21), Number(21))).simplified(),
         NotIn(Variable("X"), Number(42)),
     )
示例#3
0
def test_not_in_str() -> None:
    assert str(NotIn(Variable("X"), Variable("Y"))) == "X not in Y"
示例#4
0
 def test_not_in_neg(self) -> None:
     self.assertEqual(-NotIn(Variable("X"), Number(1)), In(Variable("X"), Number(1)))
示例#5
0
def test_not_in_neg() -> None:
    assert -NotIn(Variable("X"), Number(1)) == In(Variable("X"), Number(1))