stronger test

This commit is contained in:
Taiju Yamada 2022-06-15 12:52:00 +09:00
parent 95ed8a6c29
commit 4b3f145b94

View File

@ -127,8 +127,8 @@ TEST_SUBMODULE(pytypes, m) {
m.def("tuple_size_t", []() { return py::tuple{(py::size_t) 0}; }); m.def("tuple_size_t", []() { return py::tuple{(py::size_t) 0}; });
m.def("get_tuple", []() { return py::make_tuple(42, py::none(), "spam"); }); m.def("get_tuple", []() { return py::make_tuple(42, py::none(), "spam"); });
m.def("access_tuple_with_int_index", []() { m.def("access_tuple_with_int_index", []() {
py::object tpl = py::make_tuple(1, 2); py::object tpl = py::make_tuple(py::make_tuple(1, 2), py::make_tuple(3, 4));
return tpl[1]; return tpl[0][1];
}); });
// test_simple_namespace // test_simple_namespace