ChaiScript/unittests/deep_array_lookup.chai
Jonathan Turner c73f16fdfe Fixing 4.x grammar to be backward compatible.
Added 3.x unit tests back to show this.
2012-05-17 10:14:50 -07:00

12 lines
151 B
ChaiScript

auto a = [1,2,3, [4,5,6] ]
assert_equal(a[3][0], 4)
def Test::Test() { this.a = [1,2,3]; }
attr Test::a;
auto t = Test();
assert_equal(t.a[0], 1)