summaryrefslogtreecommitdiffstats
path: root/sigcore
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-12-25 11:27:57 -0500
committerBen Boeckel <MathStuf@gmail.com>2008-12-25 11:27:57 -0500
commit5d6aba64985c38b0dee9156873f511ff1af601f8 (patch)
treeae3fa2ee1a444b0dc0d553a75bca427ad050ba0c /sigcore
parent63fdacbc25fbec6c44a9cd099273c74406b99de0 (diff)
downloadsigen-5d6aba64985c38b0dee9156873f511ff1af601f8.tar.gz
sigen-5d6aba64985c38b0dee9156873f511ff1af601f8.tar.xz
sigen-5d6aba64985c38b0dee9156873f511ff1af601f8.zip
Fixed up Lua code in Script test
Diffstat (limited to 'sigcore')
-rw-r--r--sigcore/test/TestScript.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sigcore/test/TestScript.cpp b/sigcore/test/TestScript.cpp
index 8498c499..6e7a6779 100644
--- a/sigcore/test/TestScript.cpp
+++ b/sigcore/test/TestScript.cpp
@@ -234,11 +234,12 @@ object.connect(\"signal2()\", \"slot2()\")\n\
void lua()
{
- Sigcore::Script script("python", "import object\n\
+ Sigcore::Script script("lua", "require\"object\"\n\
\n\
object.value = \"set\"\n\
-def slot():\n\
+function slot ()\n\
object.slot1()\n\
+end\n\
object.connect(\"signal1()\", slot)\n\
object.connect(\"signal2()\", \"slot2()\")\n\
");