Пример #1
0
 def test_and(self):
     x = 12345678
     y = 2
     f1 = iobj.W_IntObject(x)
     f2 = iobj.W_IntObject(y)
     v = iobj.and__Int_Int(self.space, f1, f2)
     assert v.intval == x & y
Пример #2
0
 def test_and(self):
     x = 12345678
     y = 2
     f1 = iobj.W_IntObject(x)
     f2 = iobj.W_IntObject(y)
     v = iobj.and__Int_Int(self.space, f1, f2)
     assert v.intval == x & y