mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 22:25:10 +00:00
stronger test
This commit is contained in:
parent
95ed8a6c29
commit
4b3f145b94
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user