From 0eb23f2ad1cafc2ba0d6120621a3c1862048c1f7 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 4 Jul 2024 08:47:34 -0700 Subject: [PATCH] Remove all but 3 BAKEIN_BREAK in test_class_sh_basic.cpp --- tests/test_class_sh_basic.cpp | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/tests/test_class_sh_basic.cpp b/tests/test_class_sh_basic.cpp index 030dc2cf7..e41f77176 100644 --- a/tests/test_class_sh_basic.cpp +++ b/tests/test_class_sh_basic.cpp @@ -176,31 +176,31 @@ TEST_SUBMODULE(class_sh_basic, m) { m.def("rtrn_uqcp", rtrn_uqcp); m.def("pass_uqmp", pass_uqmp); - // BAKEIN_BREAK m.def("pass_uqcp", pass_uqcp); + m.def("pass_uqcp", pass_uqcp); m.def("rtrn_udmp", rtrn_udmp); m.def("rtrn_udcp", rtrn_udcp); - // BAKEIN_BREAK m.def("pass_udmp", pass_udmp); - // BAKEIN_BREAK m.def("pass_udcp", pass_udcp); + m.def("pass_udmp", pass_udmp); + m.def("pass_udcp", pass_udcp); m.def("rtrn_udmp_del", rtrn_udmp_del); m.def("rtrn_udcp_del", rtrn_udcp_del); - // BAKEIN_BREAK m.def("pass_udmp_del", pass_udmp_del); - // BAKEIN_BREAK m.def("pass_udcp_del", pass_udcp_del); + m.def("pass_udmp_del", pass_udmp_del); + m.def("pass_udcp_del", pass_udcp_del); m.def("rtrn_udmp_del_nd", rtrn_udmp_del_nd); m.def("rtrn_udcp_del_nd", rtrn_udcp_del_nd); - // BAKEIN_BREAK m.def("pass_udmp_del_nd", pass_udmp_del_nd); - // BAKEIN_BREAK m.def("pass_udcp_del_nd", pass_udcp_del_nd); + m.def("pass_udmp_del_nd", pass_udmp_del_nd); + m.def("pass_udcp_del_nd", pass_udcp_del_nd); py::classh(m, "uconsumer") .def(py::init<>()) .def("valid", &uconsumer::valid) - // BAKEIN_BREAK .def("pass_valu", &uconsumer::pass_valu) - // BAKEIN_BREAK .def("pass_rref", &uconsumer::pass_rref) + .def("pass_valu", &uconsumer::pass_valu) + .def("pass_rref", &uconsumer::pass_rref) .def("rtrn_valu", &uconsumer::rtrn_valu) // BAKEIN_BREAK .def("rtrn_lref", &uconsumer::rtrn_lref) // BAKEIN_BREAK .def("rtrn_cref", &uconsumer::rtrn_cref) @@ -211,7 +211,7 @@ TEST_SUBMODULE(class_sh_basic, m) { m.def("get_mtxt", get_mtxt); // pass_cref m.def("get_ptr", get_ptr); // pass_cref - // BAKEIN_BREAK m.def("unique_ptr_roundtrip", unique_ptr_roundtrip); // pass_uqmp, rtrn_uqmp + m.def("unique_ptr_roundtrip", unique_ptr_roundtrip); // pass_uqmp, rtrn_uqmp // BAKEIN_BREAK m.def("unique_ptr_cref_roundtrip", unique_ptr_cref_roundtrip); py::classh(m, "SharedPtrStash") @@ -225,11 +225,8 @@ TEST_SUBMODULE(class_sh_basic, m) { // Checks for type names used as arguments m.def("args_shared_ptr", [](std::shared_ptr p) { return p; }); m.def("args_shared_ptr_const", [](std::shared_ptr p) { return p; }); - // BAKEIN_TEMP clang-format off - // clang-format off - // BAKEIN_BREAK m.def("args_unique_ptr", [](std::unique_ptr p) { return p; }); - // BAKEIN_BREAK m.def("args_unique_ptr_const", [](std::unique_ptr p) { return p; }); - // clang-format on + m.def("args_unique_ptr", [](std::unique_ptr p) { return p; }); + m.def("args_unique_ptr_const", [](std::unique_ptr p) { return p; }); // Make sure unique_ptr type caster accept automatic_reference return value policy. m.def(