From b56ba75e24a38fff01aba03ac68aeb655ead2daf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 21 Nov 2026 11:33:38 +0100 Subject: Test: add explicit type annotations instead of workarounds --- test/script/network.et | 5 +---- test/script/parser.et | 6 ++---- 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") -- cgit v1.2.3