Exemplo n.º 1
0
 def testAddInt128NegativeLong(self):
   self.assertEqual(absl_int128.AddInt128(HIGH_LSB, -MAX64), 1)
Exemplo n.º 2
0
 def testAddNegativeInt128Long(self):
   self.assertEqual(absl_int128.AddInt128(-MAX64, -1), -HIGH_LSB)
Exemplo n.º 3
0
 def testAddInt128NegativeInt(self):
   self.assertEqual(absl_int128.AddInt128(1, -1), 0)
Exemplo n.º 4
0
 def testAddInt128Long(self):
   self.assertEqual(absl_int128.AddInt128(MAX64, 1), HIGH_LSB)
Exemplo n.º 5
0
 def testAddInt128Int(self):
   self.assertEqual(absl_int128.AddInt128(1, 1), 2)