mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
15 lines
219 B
Plaintext
15 lines
219 B
Plaintext
/*
|
|
|
|
This ensures that when indexing on both sides of an assignment,
|
|
it works correctly.
|
|
|
|
*/
|
|
|
|
var a = [1, 2, 3];
|
|
var b = [4, 5, 6];
|
|
|
|
a[1] = b[1];
|
|
|
|
assert a == [1, 5, 3], "index assignment both failed";
|
|
|
|
print "All good"; |