async def test_count_negative(self): it = ait.count(step=-2) for k in [0, -2, -4, -6]: self.assertEqual(await ait.next(it), k)
async def test_count_start(self): it = ait.count(42) for k in [42, 43, 44, 45]: self.assertEqual(await ait.next(it), k)
async def test_count_start_step(self): it = ait.count(42, 3) for k in [42, 45, 48, 51]: self.assertEqual(await ait.next(it), k)
async def test_count_bare(self): it = ait.count() for k in [0, 1, 2, 3]: self.assertEqual(await ait.next(it), k)