Add tests for more complex uses of the index operator
This commit is contained in:
parent
b064bb61e9
commit
afae221cb3
10
unittests/index_operator.chai
Normal file
10
unittests/index_operator.chai
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
// tests more complex parses of the index operator
|
||||
|
||||
def Bob::bob3() { return [1,2,3]; }
|
||||
def Bob::Bob() {}
|
||||
var b = Bob();
|
||||
|
||||
|
||||
assert_equal(b.bob3()[0], 1);
|
||||
assert_equal((b.bob3())[1, 2);
|
Loading…
x
Reference in New Issue
Block a user