mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
15 lines
294 B
Plaintext
15 lines
294 B
Plaintext
import compound;
|
|
|
|
|
|
//test dictionary concat with clashing keys
|
|
{
|
|
var a = ["one" : 1, "two": 2, "three": 3, "random": 1];
|
|
var b = ["four" : 4, "five": 5, "six": 6, "random": 2];
|
|
|
|
var c = a.concat(b);
|
|
|
|
assert c["random"] == 1, "dictionary.concat() clashing keys failed";
|
|
}
|
|
|
|
print "All good";
|