mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Nesting index multiplication assignment fixed
This affects all arithmetic types applied to inner-nested compounds.
This commit is contained in:
@@ -71,6 +71,14 @@
|
||||
assert a[0][0] == [42], "nested indexing failed";
|
||||
}
|
||||
|
||||
//test nested indexing multipliciation assignment
|
||||
{
|
||||
var a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
|
||||
|
||||
a[1][1] *= 10;
|
||||
|
||||
assert a == [[1, 2, 3], [4, 50, 6], [7, 8, 9]], "nested indexing multipliciation assignment failed";
|
||||
}
|
||||
|
||||
//test combine example
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user