mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Small fixes for the script interpreter.
This commit is contained in:
parent
69d7a2f4a1
commit
8fc0db21c1
3 changed files with 11 additions and 11 deletions
|
|
@ -410,14 +410,14 @@ TEST(Script, ForEachLoop)
|
|||
TEST(Script, TorqueScript_Array_Testing)
|
||||
{
|
||||
ConsoleValue value = RunScript(R"(
|
||||
function t(%idx) { %a[idx] = 2; return %a[idx]; }
|
||||
function t(%idx) { %a[%idx] = 2; return %a[%idx]; }
|
||||
return t(5);
|
||||
)");
|
||||
|
||||
ASSERT_EQ(value.getInt(), 2);
|
||||
|
||||
ConsoleValue value2 = RunScript(R"(
|
||||
function t(%idx) { %a[idx, 0] = 2; return %a[idx, 0]; }
|
||||
function t(%idx) { %a[%idx, 0] = 2; return %a[%idx, 0]; }
|
||||
return t(5);
|
||||
)");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue