mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Finished runner library
This commit is contained in:
9
test/scripts/lib/runner/sample_1.toy
Normal file
9
test/scripts/lib/runner/sample_1.toy
Normal file
@@ -0,0 +1,9 @@
|
||||
import runner;
|
||||
|
||||
//delegate to the other sample script
|
||||
var s = loadScript("scripts:/lib/runner/sample_2.toy");
|
||||
|
||||
s.runScript();
|
||||
|
||||
s.freeScript();
|
||||
|
||||
1
test/scripts/lib/runner/sample_2.toy
Normal file
1
test/scripts/lib/runner/sample_2.toy
Normal file
@@ -0,0 +1 @@
|
||||
assert true, "Nested sample scripts worked";
|
||||
Reference in New Issue
Block a user