mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
How did I forget something so basic?
This commit is contained in:
@@ -50,4 +50,13 @@
|
||||
}
|
||||
|
||||
|
||||
//test indexing with variables
|
||||
{
|
||||
var d = ["one":1, "two":2, "three":3];
|
||||
|
||||
var first = "two";
|
||||
|
||||
assert d[first] == 2, "indexing with variables failed";
|
||||
}
|
||||
|
||||
print "All good";
|
||||
|
||||
Reference in New Issue
Block a user