summaryrefslogtreecommitdiff
path: root/testing.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testing.sh')
-rwxr-xr-xtesting.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing.sh b/testing.sh
index 1489209..11a9290 100755
--- a/testing.sh
+++ b/testing.sh
@@ -36,4 +36,16 @@ test "$1" "global a[5] = 4; main() { wrt([a + 5] + '0'); wrt '\n'; }"
test "$1" "global a[3]; main() { [a] = 'U'; [a+1] = 'w'; [a+2] = '\n'; wrt[a]; wrt[a+1]; wrt[a]; wrt[a+2]; }"
test "$1" "main() { wrt('0' + div(6, 3)); wrt('\n'); } div(a, b) { return a / b; }"
test "$1" "main() { \"uwu\"; \"owo\"; }"
+test "$1" "main() { wrt('0' + (5 < 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (7 < 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (9 < 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (5 > 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (7 > 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (9 > 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (5 <= 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (7 <= 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (9 <= 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (5 >= 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (7 >= 7)); wrt '\n'; }"
+test "$1" "main() { wrt('0' + (9 >= 7)); wrt '\n'; }"
rm -f build/tmp.*