()
| 3 | |
| 4 | |
| 5 | def test_loop_first(): |
| 6 | assert list(loop_first([])) == [] |
| 7 | iterable = loop_first(["apples", "oranges", "pears", "lemons"]) |
| 8 | assert next(iterable) == (True, "apples") |
| 9 | assert next(iterable) == (False, "oranges") |
| 10 | assert next(iterable) == (False, "pears") |
| 11 | assert next(iterable) == (False, "lemons") |
| 12 | |
| 13 | |
| 14 | def test_loop_last(): |
nothing calls this directly
no test coverage detected