std::valarray <-> list
(doc)
| 63 | |
| 64 | |
| 65 | def test_valarray(doc): |
| 66 | """std::valarray <-> list""" |
| 67 | lst = m.cast_valarray() |
| 68 | assert lst == [1, 4, 9] |
| 69 | assert m.load_valarray(lst) |
| 70 | assert m.load_valarray(tuple(lst)) |
| 71 | |
| 72 | assert doc(m.cast_valarray) == "cast_valarray() -> list[int]" |
| 73 | assert ( |
| 74 | doc(m.load_valarray) |
| 75 | == "load_valarray(arg0: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex]) -> bool" |
| 76 | ) |
| 77 | |
| 78 | |
| 79 | def test_map(doc): |