diff options
author | kdx <kikoodx@paranoici.org> | 2023-06-10 05:02:28 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-06-10 05:06:42 +0200 |
commit | eadc11a1ed56241e565e6ff9744fa692ed8ccd09 (patch) | |
tree | 23c4608aa6acb9aabea1638fbf69b535a1b63696 /testing.sh | |
parent | c18eda9ff2377f02727910b7cf54b286ea35fa4d (diff) | |
download | golem-eadc11a1ed56241e565e6ff9744fa692ed8ccd09.tar.gz |
local variables should be done
Diffstat (limited to 'testing.sh')
-rwxr-xr-x | testing.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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.* |