Skip to content

Commit

Permalink
aad test
Browse files Browse the repository at this point in the history
  • Loading branch information
horasal committed Jul 18, 2015
1 parent 5d7752a commit 0511cef
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/compiler/literals/array-literal-in-class.ooc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Foo: class{
test := [1, 2, 3]
init: func
}

Bar: class{
test := static const [1, 2, 3]
init: func
}

describe("ArrayLiteral should be correctly unwrapped",||
foo := Foo new()
assert(foo test[0] == 1)
assert(foo test[1] == 2)
assert(foo test[2] == 3)
assert(Bar test[0] == 1)
assert(Bar test[1] == 2)
assert(Bar test[2] == 3)
)

0 comments on commit 0511cef

Please sign in to comment.