MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_generalized_iterators_simple

Function test_generalized_iterators_simple

tests/test_sequences_and_iterators.py:56–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55
56def 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
66def test_iterator_doc_annotations():

Callers

nothing calls this directly

Calls 2

listClass · 0.85
IntPairsMethod · 0.80

Tested by

no test coverage detected