()
| 54 | |
| 55 | |
| 56 | def test_generalized_iterators_simple(): |
| 57 | assert list(m.IntPairs([(1, 2), (3, 4), (0, 5)]).simple_iterator()) == [ |
| 58 | (1, 2), |
| 59 | (3, 4), |
| 60 | (0, 5), |
| 61 | ] |
| 62 | assert list(m.IntPairs([(1, 2), (3, 4), (0, 5)]).simple_keys()) == [1, 3, 0] |
| 63 | assert list(m.IntPairs([(1, 2), (3, 4), (0, 5)]).simple_values()) == [2, 4, 5] |
| 64 | |
| 65 | |
| 66 | def test_iterator_doc_annotations(): |