It's done for now

This commit is contained in:
2022-09-06 10:49:22 +01:00
parent 63a7231254
commit 39af340fbc
3 changed files with 315 additions and 32 deletions

View File

@@ -26,4 +26,14 @@
}
//test index arithmetic
{
var a = [1, 2, 3];
a[1] *= 3;
assert a == [1, 6, 3], "index arithmetic failed";
}
print "All good";

View File

@@ -18,4 +18,24 @@
}
//test index arithmetic
{
var d = ["one":1, "two":2, "three":3];
d["three"] *= 3;
assert d == ["one":1, "two":2, "three":9], "index arithmetic failed";
}
//test dot arithmetic
{
var d = ["one":1, "two":2, "three":3];
d.three *= 3;
assert d == ["one":1, "two":2, "three":9], "index arithmetic failed";
}
print "All good";