Added type casting a grouping bugfix, resolved #76

This commit is contained in:
2023-03-17 20:57:47 +11:00
parent 2edfbbe3ef
commit 1095e1a885
4 changed files with 32 additions and 26 deletions

View File

@@ -0,0 +1,7 @@
var s = "42";
var t = "69";
assert int (s + t) - 1 == 4268, "casting parentheses failed";
print "All good";

View File

@@ -108,6 +108,7 @@ int main() {
//run each file in tests/scripts/
const char* filenames[] = {
"arithmetic.toy",
"casting-parentheses-bugfix.toy",
"casting.toy",
"coercions.toy",
"comparisons.toy",