From 9fb76c74b5d30b592bad60de5955b9efa2e6cd65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 22 Aug 2026 22:37:53 +0200 Subject: =?UTF-8?q?Shell:=20implement=20=E2=80=98!=E2=80=99=20operator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changelog: Implement negation using the `!` operator in the shell interpreter. --- test/asset/shell/logic.et | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/asset/shell/logic.et (limited to 'test/asset/shell') 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: + ! -- cgit v1.2.3