summaryrefslogtreecommitdiff
path: root/test/script/parser.et
diff options
context:
space:
mode:
Diffstat (limited to 'test/script/parser.et')
-rw-r--r--test/script/parser.et6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/script/parser.et b/test/script/parser.et
index d387877..5c45876 100644
--- a/test/script/parser.et
+++ b/test/script/parser.et
@@ -3,14 +3,12 @@ module parser
asset scripts:
path: ../asset/parser
-def expect_load_success using p of file:
- guard (file /= "") # TODO: forces (file :: String)
+def expect_load_success using p of (file : String):
send "load ${scripts.path}/$file.et" to p
expect /load-([a-z-]+).*/ from p capture done
guard (done == "done")
-def expect_load_failure using p of file giving error:
- guard (file /= "") # TODO: forces (file :: String)
+def expect_load_failure using p of (file : String) giving error:
send "load ${scripts.path}/$file.et" to p
expect /load-([a-z-]+) ([a-z-]+).*/ from p capture done, msg
guard (done == "failed")