mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Allowed for empty arrays and trailing commas
This commit is contained in:
12
scripts/trailing.toy
Normal file
12
scripts/trailing.toy
Normal file
@@ -0,0 +1,12 @@
|
||||
//test trailing commas
|
||||
var a = [1, 2, 3, ];
|
||||
|
||||
print a;
|
||||
|
||||
//test empty arrays
|
||||
var b = [];
|
||||
|
||||
print b;
|
||||
|
||||
//deep
|
||||
assert [[1, 2, 3],[4,99,6],[7,8,9]], "2-D array failed";
|
||||
Reference in New Issue
Block a user