def test_count(self):
        self.assertEqual(zip('abc',count()), [('a', 0), ('b', 1), ('c', 2)])
        self.assertEqual(zip('abc',count(3)), [('a', 3), ('b', 4), ('c', 5)])
        self.assertEqual(take(2, zip('abc',count(3))), [('a', 3), ('b', 4)])
        self.assertRaises(TypeError, count, 2, 3)
        self.assertRaises(TypeError, count, 'a')
        c = count(2-sys.maxint)   # verify that rollover doesn't crash
        c.next(); c.next(); c.next(); c.next(); c.next()
        c = count(3)
        self.assertEqual(repr(c), 'count(3)')
        c.next()
        self.assertEqual(repr(c), 'count(4)')
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_itertools.py/TestBasicOps.test_count/swapped operands of `-`