summaryrefslogtreecommitdiff
path: root/testing.sh
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-06-09 20:54:34 +0200
committerkdx <kikoodx@paranoici.org>2023-06-09 21:08:17 +0200
commitb1ecaf35206e901309ed058c61b5ec20afc94ca0 (patch)
tree3d3845d13b7c6387dd2c14e2c1d8783a523af381 /testing.sh
parentcfc5d381a00fdbd812396c3c4e67616cfa669223 (diff)
downloadgolem-b1ecaf35206e901309ed058c61b5ec20afc94ca0.tar.gz
parse function
Diffstat (limited to 'testing.sh')
-rwxr-xr-xtesting.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/testing.sh b/testing.sh
index 7abae1d..467d899 100755
--- a/testing.sh
+++ b/testing.sh
@@ -4,12 +4,14 @@ function test() {
CODE="$1"
echo "--- $CODE ---"
./build/golem "$CODE" >"build/tmp.orgaasm"
+ cat "build/tmp.orgaasm"
orgaasm "build/tmp.orgaasm" "build/tmp.rom"
orgaemu "build/tmp.rom"
+ echo ""
}
tup || exit 1
-test "5 + 2;"
-test "6 + 3;"
-test "'a' - 'b';"
+test "fn main(){5 + 2;}"
+test "fn main(){6 + 3;}"
+test "fn main(){'a' - 'b';}"
rm -f build/tmp.*