From 0eed0e11c46715a3b22ca3e526078a841927963f Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Wed, 31 Jul 2013 13:58:15 -0700 Subject: Changing objname to type in the embedded data of an object. --- tests/test-Lua.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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 i = new Input("tests/test-Lua.lua"); i->open(); L.load(i); -- cgit v1.2.3