summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/script/network.et5
-rw-r--r--test/script/parser.et6
2 files changed, 3 insertions, 8 deletions
diff --git a/test/script/network.et b/test/script/network.et
index 2978910..7403c21 100644
--- a/test/script/network.et
+++ b/test/script/network.et
@@ -4,10 +4,7 @@ asset scripts:
path: ../asset/network
-def run_test_from using p (file):
- guard (file /= "") # TODO: forces (file :: String)
- send "" to p # TODO: forces (p :: Process)
-
+def run_test_from using (p : Process) (file : String):
with p:
send "load $file"
expect /load-done/
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")