Allowed for empty arrays and trailing commas

This commit is contained in:
2024-12-10 10:44:13 +11:00
parent 1a36c14247
commit 5f75b5f1a3
4 changed files with 49 additions and 4 deletions

12
scripts/trailing.toy Normal file
View 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";