summaryrefslogtreecommitdiff
path: root/testing.sh
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-10 00:42:25 +0200
committerkdx <kikoodx@paranoici.org>2023-06-10 00:42:25 +0200
commitafb74639ece6a01b4ddbe1740466083c7263241a (patch)
treea992cdda520b234d0b1827809fe18bfdd54e049e /testing.sh
parentb8decd2179c0fa6b15ffaa9f9929b8e0de6252fd (diff)
downloadgolem-afb74639ece6a01b4ddbe1740466083c7263241a.tar.gz
function call
Diffstat (limited to 'testing.sh')
-rwxr-xr-xtesting.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing.sh b/testing.sh
index f6f0083..40f93c2 100755
--- a/testing.sh
+++ b/testing.sh
@@ -11,7 +11,8 @@ function test() {
}
tup || exit 1
-test "main(){5 + 2;}"
+test "main(){5 + 2; return 4;}"
test "main(){6 + 3;}"
test "main(){'a' - 'b';}"
+test "main() { fizz(50 + buzz() - 3) * 4; } fizz(x) { return 3; } buzz() { return 42; }"
rm -f build/tmp.*