summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2013-07-31 13:58:15 -0700
committerNicolas Noble <pixel@nobis-crew.org>2013-07-31 13:58:15 -0700
commit0eed0e11c46715a3b22ca3e526078a841927963f (patch)
treef26da60d8ff86e6b99a314270355016814846c3e /tests
parent5ce610659adea3159549d4863c2479163fce89f4 (diff)
Changing objname to type in the embedded data of an object.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-Lua.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-Lua.cc b/tests/test-Lua.cc
index d4c3637..06f233b 100644
--- a/tests/test-Lua.cc
+++ b/tests/test-Lua.cc
@@ -202,6 +202,13 @@ void MainTask::Do() {
}
TAssert(L.gettop() == 0);
+ L.load("return obj.__type.name == 'ObjectTest', obj.__type.new == ObjectTest.new");
+ TAssert(L.gettop() == 2);
+ TAssert(L.toboolean(1) == true);
+ TAssert(L.toboolean(2) == true);
+ L.pop();
+ L.pop();
+
IO<Input> i = new Input("tests/test-Lua.lua");
i->open();
L.load(i);