• Home
  • Raw
  • Download

Lines Matching refs:REQUIRE

55     REQUIRE(py::hasattr(module, "DerivedWidget"));
62 REQUIRE(locals["message"].cast<std::string>() == "Hello, World! - 5");
66 REQUIRE(message.cast<std::string>() == "The question");
69 REQUIRE(cpp_widget.the_answer() == 42);
110 REQUIRE(py::module::import("widget_module").attr("add")(1, 2).cast<int>() == 3);
111 REQUIRE(has_pybind11_internals_builtin());
112 REQUIRE(has_pybind11_internals_static());
113 REQUIRE(py::module::import("external_module").attr("A")(123).attr("value").cast<int>() == 123);
116 REQUIRE(reinterpret_cast<uintptr_t>(*py::detail::get_internals_pp()) ==
121 REQUIRE(Py_IsInitialized() == 0);
124 REQUIRE(Py_IsInitialized() == 1);
130 REQUIRE(has_pybind11_internals_builtin());
131 REQUIRE(has_pybind11_internals_static());
132 REQUIRE(reinterpret_cast<uintptr_t>(*py::detail::get_internals_pp()) ==
146 REQUIRE(ran);
153 REQUIRE(cpp_module.attr("add")(1, 2).cast<int>() == 3);
158 REQUIRE(py_widget.attr("the_message").cast<std::string>() == "Hello after restart");
168 REQUIRE(m.attr("add")(1, 2).cast<int>() == 3);
170 REQUIRE(has_pybind11_internals_builtin());
171 REQUIRE(has_pybind11_internals_static());
181 REQUIRE(has_pybind11_internals_static());
190 REQUIRE(m.attr("add")(1, 2).cast<int>() == 3);
197 REQUIRE(py::hasattr(py::module::import("__main__"), "main_tag"));
198 REQUIRE(py::hasattr(py::module::import("widget_module"), "extension_module_tag"));
205 REQUIRE(py::globals()["var"]["number"].cast<int>() == 42);
219 REQUIRE(has_pybind11_internals_static());
234 REQUIRE(locals["count"].cast<int>() == num_threads);
272 REQUIRE(result == 1);
283 REQUIRE(result == 2);