We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bcdbff commit aad33b7Copy full SHA for aad33b7
src/actor.rs
@@ -216,7 +216,8 @@ fn test_actor_new() {
216
217
act.exec(r#"
218
function testit (i)
219
- return i + 1
+ local Object = require("src.test")
220
+ return Object:calc1(i)
221
end
222
"#, None).ok().unwrap();
223
match act.call("testit", LuaMessage::from(1)) {
src/test.lua
@@ -0,0 +1,7 @@
1
+local Object = {}
2
+
3
+function Object:calc1 (a)
4
+ return a + 1
5
+end
6
7
+return Object
0 commit comments