diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-11-21 11:33:38 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-11-23 19:55:55 +0100 |
| commit | b56ba75e24a38fff01aba03ac68aeb655ead2daf (patch) | |
| tree | 3c27332870fd933f420f545b69fcdef33710757f /test/script/parser.et | |
| parent | d60c8b9c41a64e1719e0cd1ff72f0cc0fdc56107 (diff) | |
Test: add explicit type annotations instead of workarounds
Diffstat (limited to 'test/script/parser.et')
| -rw-r--r-- | test/script/parser.et | 6 |
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") |