diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-06-21 21:15:03 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-06-21 21:15:03 +0200 |
commit | 511915adb65e6616e3ba3bae4cb61f6c708560c1 (patch) | |
tree | 26d91a15ae710764b7d31df35269c2c0ec68d5ed /test/script/run.et | |
parent | be3eac94b495a015541907d035044a1687aaa4b1 (diff) |
Boolean literals and comparison operators
Changelog: Added `True` and `False` literals, and comparison operators for boolean values
Diffstat (limited to 'test/script/run.et')
-rw-r--r-- | test/script/run.et | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/script/run.et b/test/script/run.et index 973a786..7cc1670 100644 --- a/test/script/run.et +++ b/test/script/run.et @@ -3,6 +3,13 @@ module run asset scripts: path: ../asset/run +asset scripts_success: + path: ../asset/run-success + +asset scripts_fail: + path: ../asset/run-fail + + test TrivialRun: spawn as p with p: @@ -21,6 +28,39 @@ test TrivialRun: guard (done == "run-failed") +test SimpleRun: + let should_succeed = [ "bool" ] + let should_fail = [ "bool" ] + spawn as p + + with p: + for file in should_succeed: + send "load ${scripts_success.path}/$file.et" + local: + expect /(load-.*)/ capture done + guard (done == "load-done") + flush + + send "run Test" + local: + expect /(run-.*)/ capture done + guard (done == "run-done") + flush + + for file in should_fail: + send "load ${scripts_fail.path}/$file.et" + local: + expect /(load-.*)/ capture done + guard (done == "load-done") + flush + + send "run Test" + local: + expect /(run-.*)/ capture done + guard (done == "run-failed") + flush + + test RunConfig: node n shell on n: |