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/parser.et | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/script/parser.et') 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