Пример #1
0
 def test_pos(self):
     x = 42
     f1 = iobj.W_IntObject(x)
     v = iobj.pos__Int(self.space, f1)
     assert v.intval == +x
     x = -42
     f1 = iobj.W_IntObject(x)
     v = iobj.pos__Int(self.space, f1)
     assert v.intval == +x
Пример #2
0
 def test_pos(self):
     x = 42
     f1 = iobj.W_IntObject(x)
     v = iobj.pos__Int(self.space, f1)
     assert v.intval == +x
     x = -42
     f1 = iobj.W_IntObject(x)
     v = iobj.pos__Int(self.space, f1)
     assert v.intval == +x