Пример #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))