From 511915adb65e6616e3ba3bae4cb61f6c708560c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 21 Jun 2025 21:15:03 +0200 Subject: Boolean literals and comparison operators Changelog: Added `True` and `False` literals, and comparison operators for boolean values --- test/script/run.et | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'test/script') 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: -- cgit v1.2.3