mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Added type casting a grouping bugfix, resolved #76
This commit is contained in:
7
test/scripts/casting-parentheses-bugfix.toy
Normal file
7
test/scripts/casting-parentheses-bugfix.toy
Normal file
@@ -0,0 +1,7 @@
|
||||
var s = "42";
|
||||
var t = "69";
|
||||
|
||||
assert int (s + t) - 1 == 4268, "casting parentheses failed";
|
||||
|
||||
|
||||
print "All good";
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user