[luabind-cvs] luabind/luabind/test test_lua_classes.cpp,1.26.2.3,1.26.2.4
Brought to you by:
arvidn,
daniel_wallin
From: Daniel W. <dan...@us...> - 2005-10-22 10:50:12
|
Update of /cvsroot/luabind/luabind/luabind/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14005 Modified Files: Tag: beta7-devel2 test_lua_classes.cpp Log Message: Removed test case that been moved to separate file. Index: test_lua_classes.cpp =================================================================== RCS file: /cvsroot/luabind/luabind/luabind/test/test_lua_classes.cpp,v retrieving revision 1.26.2.3 retrieving revision 1.26.2.4 diff -u -d -r1.26.2.3 -r1.26.2.4 --- test_lua_classes.cpp 18 Oct 2005 16:03:25 -0000 1.26.2.3 +++ test_lua_classes.cpp 22 Oct 2005 10:50:02 -0000 1.26.2.4 @@ -136,15 +136,6 @@ int f(int, int) { return 2; } }; -struct V -{ - int f(int,int) { return 2; } -}; - -struct W : V -{ -}; - void test_main(lua_State* L) { module(L) @@ -172,34 +163,16 @@ class_<U, T_>("U") .def(constructor<>()) .def("f", &U::f) - .def("g", &U::g), - - class_<W>("W") - .def(constructor<>()) - .def("f", &V::f) + .def("g", &U::g) ]; - - try - { - dostring(L, "u = U()\n" + + DOSTRING(L, + "u = U()\n" "assert(u:f(0) == 1)\n" "assert(u:f(0,0) == 2)\n" "assert(u:g() == 3)\n"); - } - catch (luabind::error const& e) - { - TEST_ERROR(lua_tostring(e.state(), -1)); - } - catch (std::string const& s) - { - TEST_ERROR(s.c_str()); - } DOSTRING(L, - "w = W()\n" - "assert(w:f(1,1) == 2)"); - - DOSTRING(L, "u = U()\n" "assert(u:f(0) == 1)\n" "assert(u:f(0,0) == 2)\n" |