summaryrefslogtreecommitdiff
path: root/testing.sh
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-10 05:02:28 +0200
committerkdx <kikoodx@paranoici.org>2023-06-10 05:06:42 +0200
commiteadc11a1ed56241e565e6ff9744fa692ed8ccd09 (patch)
tree23c4608aa6acb9aabea1638fbf69b535a1b63696 /testing.sh
parentc18eda9ff2377f02727910b7cf54b286ea35fa4d (diff)
downloadgolem-eadc11a1ed56241e565e6ff9744fa692ed8ccd09.tar.gz
local variables should be done
Diffstat (limited to 'testing.sh')
-rwxr-xr-xtesting.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing.sh b/testing.sh
index b1db4ea..3acaafe 100755
--- a/testing.sh
+++ b/testing.sh
@@ -21,4 +21,5 @@ test "$1" "global abc = 5; main(){ return abc; }"
test "$1" "main(){ return abc; } global abc = 5;"
test "$1" "global abc = 5; main(){ inc(); return abc; } inc() { abc = abc + 1; }"
test "$1" "main() { wrt('H'); wrt('e'); wrt('l'); wrt('l'); wrt('o'); wrt('!'); wrt('\n'); }"
+test "$1" "main() { wrt(up('u')); wrt('w'); wrt(up('u')); wrt('\n'); } up(c) { return c + 'A' - 'a'; }"
rm -f build/tmp.*