Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_descr.py2653 class octlong(long): class
2661 return self.__class__(super(octlong, self).__add__(other))
2663 self.assertEqual(str(octlong(3) + 5), "010")
2666 self.assertEqual(str(5 + octlong(3000)), "05675")
2667 a = octlong(12345)
2674 self.assertIs((-octlong(0)).__class__, long)
2685 self.assertIs((octlong(0) << 12).__class__, long)
2686 self.assertIs((octlong(0) >> 12).__class__, long)
2687 self.assertIs(abs(octlong(0)).__class__, long)
/external/python/cpython3/Lib/test/
Dtest_descr.py2641 class octlong(int): class
2646 return self.__class__(super(octlong, self).__add__(other))
2648 self.assertEqual(str(octlong(3) + 5), "0o10")
2651 self.assertEqual(str(5 + octlong(3000)), "0o5675")
2652 a = octlong(12345)
2659 self.assertIs((-octlong(0)).__class__, int)
2670 self.assertIs((octlong(0) << 12).__class__, int)
2671 self.assertIs((octlong(0) >> 12).__class__, int)
2672 self.assertIs(abs(octlong(0)).__class__, int)