From 902940401d1c1e657cdaf3e7bae8cbb89d14ffa9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 15 Nov 2026 08:57:03 +0100 Subject: added left shift (^<) and right shift (^>) operators Previously you'd have to write `a * 2^*b` for left shift, which is inefficient and cumbersome. --- tests/testsuite.at | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/testsuite.at') diff --git a/tests/testsuite.at b/tests/testsuite.at index e86088e..8a81bab 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -105,6 +105,11 @@ TE_CHECK([[2^*-5 - 0"N(0/0)']], 0, ignore, ignore) TE_CHECK([[2.^*-5:=]], 0, [0.03125], ignore) AT_CLEANUP +AT_SETUP([Bit shifting]) +TE_CHECK([[(@0ff^<8) - @0ff00"N(0/0)]], 0, ignore, ignore) +TE_CHECK([[(@0ffaa^>8) - @0ff"N(0/0)]], 0, ignore, ignore) +AT_CLEANUP + AT_SETUP([Missing left operand]) TE_CHECK([[+23=]], 1, ignore, ignore) AT_CLEANUP -- cgit v1.2.3