()
| 12 | |
| 13 | |
| 14 | def test_loop_last(): |
| 15 | assert list(loop_last([])) == [] |
| 16 | iterable = loop_last(["apples", "oranges", "pears", "lemons"]) |
| 17 | assert next(iterable) == (False, "apples") |
| 18 | assert next(iterable) == (False, "oranges") |
| 19 | assert next(iterable) == (False, "pears") |
| 20 | assert next(iterable) == (True, "lemons") |
| 21 | |
| 22 | |
| 23 | def test_loop_first_last(): |
nothing calls this directly
no test coverage detected