()
| 127 | |
| 128 | |
| 129 | def test_vector_bool(): |
| 130 | import pybind11_cross_module_tests as cm |
| 131 | |
| 132 | vv_c = cm.VectorBool() |
| 133 | for i in range(10): |
| 134 | vv_c.append(i % 2 == 0) |
| 135 | for i in range(10): |
| 136 | assert vv_c[i] == (i % 2 == 0) |
| 137 | assert str(vv_c) == "VectorBool[1, 0, 1, 0, 1, 0, 1, 0, 1, 0]" |
| 138 | |
| 139 | |
| 140 | def test_vector_custom(): |