Update of /cvsroot/luabind/luabind/luabind/test
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv780/luabind/test
Modified Files:
test_object.cpp
Log Message:
added missing function, registry()
Index: test_object.cpp
===================================================================
RCS file: /cvsroot/luabind/luabind/luabind/test/test_object.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- test_object.cpp 1 Sep 2006 13:06:23 -0000 1.31
+++ test_object.cpp 5 Oct 2006 19:57:53 -0000 1.32
@@ -147,6 +147,11 @@
globals(L)["temp"] = &temp_object;
TEST_CHECK(object_cast<test_param const*>(globals(L)["temp"]) == &temp_object);
TEST_CHECK(globals(L)["temp"] == temp_object);
+
+ // test the registry
+ object reg = registry(L);
+ reg["__a"] = "foobar";
+ TEST_CHECK(object_cast<std::string>(registry(L)["__a"]) == "foobar");
DOSTRING(L,
"t = 2\n"
|