mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Added fib-memo.toy, fixed bugs until it worked
This commit is contained in:
@@ -30,13 +30,11 @@
|
||||
|
||||
//test nested indexing
|
||||
{
|
||||
var d = ["foo": ["bar": 0]];
|
||||
var d = ["foo" : ["bar" : ["bazz" : ["fizz" : 5]]]];
|
||||
|
||||
d["foo"]["bar"] = 42;
|
||||
d["foo"]["bar"]["bazz"]["fizz"] = 66;
|
||||
|
||||
print d;
|
||||
|
||||
assert d == ["foo": ["bar": 42]], "nested indexing failed";
|
||||
assert d == ["foo": ["bar": ["bazz": ["fizz": 66]]]], "nested indexing failed";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user