diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-22 22:37:53 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-22 22:38:56 +0200 |
| commit | 9fb76c74b5d30b592bad60de5955b9efa2e6cd65 (patch) | |
| tree | 3985118032a13f5044dee357c622e3ad34d79985 /test/asset/shell | |
| parent | 0ba7a3adcc5e539a31b5893bc956a39105e6a9bf (diff) | |
Shell: implement ‘!’ operator
Changelog: Implement negation using the `!` operator in the shell interpreter.
Diffstat (limited to 'test/asset/shell')
| -rw-r--r-- | test/asset/shell/logic.et | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/asset/shell/logic.et b/test/asset/shell/logic.et new file mode 100644 index 0000000..d1d4b32 --- /dev/null +++ b/test/asset/shell/logic.et @@ -0,0 +1,14 @@ +test NegateFalse: + node n + shell on n as sh: + ! false + +test NegateTrue: + node n + shell on n as sh: + ! true + +test NegateNothing: + node n + shell on n as sh: + ! |