diff options
author | kdx <kikoodx@paranoici.org> | 2023-06-09 20:54:34 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-06-09 21:08:17 +0200 |
commit | b1ecaf35206e901309ed058c61b5ec20afc94ca0 (patch) | |
tree | 3d3845d13b7c6387dd2c14e2c1d8783a523af381 /testing.sh | |
parent | cfc5d381a00fdbd812396c3c4e67616cfa669223 (diff) | |
download | golem-b1ecaf35206e901309ed058c61b5ec20afc94ca0.tar.gz |
parse function
Diffstat (limited to 'testing.sh')
-rwxr-xr-x | testing.sh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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.* |