1234567891011121314151617 |
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- from draugr.python_utilities import recycle
- __author__ = "Christian Heider Nielsen"
- __doc__ = r"""
- Created on 28/10/2019
- """
- def test_recycle_generator1():
- a = range(9)
- for i, b in zip(range(18), recycle(a)):
- assert b in a
- assert i == 17
|