16 #define GETTEXT_DOMAIN "wesnoth-test"
19 #include <boost/test/unit_test.hpp>
29 std::vector<dummy_object> vec;
30 auto& obj = vec.emplace_back(
"test");
31 BOOST_CHECK_EQUAL(obj.value,
"test");
34 BOOST_CHECK_EQUAL(ptr.
get_ptr(), &obj);
36 auto obj_moved = std::move(obj);
38 BOOST_CHECK_EQUAL(ptr.
get_ptr(), &obj_moved);
39 BOOST_CHECK_EQUAL(ptr->value,
"test");
Tmust inherit enable_lua_ptr<T>
dummy_object(const std::string &s)
BOOST_AUTO_TEST_CASE(test_lua_ptr)
static map_location::direction s