Пример #1
0
 def test_invert(self):
     x = 42
     f1 = iobj.W_IntObject(x)
     v = iobj.invert__Int(self.space, f1)
     assert v.intval == ~x
Пример #2
0
 def test_invert(self):
     x = 42
     f1 = iobj.W_IntObject(x)
     v = iobj.invert__Int(self.space, f1)
     assert v.intval == ~x