summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2026-11-21 11:33:38 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2026-11-23 19:55:55 +0100
commitb56ba75e24a38fff01aba03ac68aeb655ead2daf (patch)
tree3c27332870fd933f420f545b69fcdef33710757f /test
parentd60c8b9c41a64e1719e0cd1ff72f0cc0fdc56107 (diff)
Test: add explicit type annotations instead of workarounds
Diffstat (limited to 'test')
-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")