def testAdd32(self): "Test add32" self.assertEquals(add32(10, -6), 4) self.assertEquals(add32(6, -10), -4 & 0xFFFFFFFFL) self.assertEquals(add32(0x80000000L, -1), 0x7FFFFFFF) self.assertEquals(add32(0x7FFFFFFF, 1), 0x80000000L)
def testAdd32(self): "Test add32" self.assertEquals(add32(10, -6), 4) self.assertEquals(add32(6, -10), -4&0xFFFFFFFF) self.assertEquals(add32(0x80000000, -1), 0x7FFFFFFF) self.assertEquals(add32(0x7FFFFFFF, 1), 0x80000000)