summaryrefslogtreecommitdiff
path: root/testing.sh
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-10 16:04:29 +0200
committerkdx <kikoodx@paranoici.org>2023-06-10 16:04:29 +0200
commitc9dd409007a4c87bac3c497fd2df2e7d333b8609 (patch)
treea24b079b8dcca2b0ca64e5129dacb942d3ccb1a4 /testing.sh
parentceabe04d92a8eb1d57206fd9138fd6548f5ed3b6 (diff)
downloadgolem-c9dd409007a4c87bac3c497fd2df2e7d333b8609.tar.gz
assign to array
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 8894762..4fe973e 100755
--- a/testing.sh
+++ b/testing.sh
@@ -31,4 +31,5 @@ test "$1" "global a[5] = 4; main() { wrt([a] + '0'); wrt '\n'; }"
test "$1" "global a[5] = 4; main() { wrt([a + 1] + '0'); wrt '\n'; }"
test "$1" "global a[5] = 4; main() { wrt([a + 4] + '0'); wrt '\n'; }"
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]; }"
rm -f build/tmp.*