Home
last modified time | relevance | path

Searched refs:hexint (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_descr.py2633 class hexint(int): class
2637 return hexint(int.__add__(self, other))
2640 self.assertEqual(repr(hexint(7) + 9), "0x10")
2641 self.assertEqual(repr(hexint(1000) + 7), "0x3ef")
2642 a = hexint(12345)
2650 self.assertIs((hexint(0) << 12).__class__, int)
2651 self.assertIs((hexint(0) >> 12).__class__, int)
/external/python/cpython3/Lib/test/
Dtest_descr.py2621 class hexint(int): class
2625 return hexint(int.__add__(self, other))
2628 self.assertEqual(repr(hexint(7) + 9), "0x10")
2629 self.assertEqual(repr(hexint(1000) + 7), "0x3ef")
2630 a = hexint(12345)
2638 self.assertIs((hexint(0) << 12).__class__, int)
2639 self.assertIs((hexint(0) >> 12).__class__, int)