Skip to content

Commit 622837b

Browse files
committed
add test
1 parent a21f6f4 commit 622837b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

assets/tests/lua/call_script_function_with_params.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ State = {
33
}
44

55
function test_func(x)
6-
called_with = x
6+
State.called_with = x
77
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub fn test_func(x) {
2+
set_state_value("called_with", x)
3+
}

0 commit comments

Comments
 (0)