 describe 'length', ->
 
 	it 'returns amount of items', ->
-		list = List 1, 2
+		list = List [1, 2]
 		expect(list.length).toBe 2
 
 describe 'get()', ->
 
 	it 'return an item at given position', ->
-		list = List 1, 2
+		list = List [1, 2]
 		expect(list.get 0).toBe 1
 		expect(list.get 1).toBe 2
 		expect(list.get 2).toBe undefined

describe 'append()', ->

	it 'add an item on the end', ->
		list = List 1
		list.append 2
		expect(list.items()).toEqual 0: 1, 1: 2

describe 'insert()', ->

	it 'insert an item at given position', ->
		list = List 1, 2
		list.insert 1, 0
		list.insert 0, 2
		expect(list.items()).toEqual 0: 2, 1: 1, 2: 0, 3: 2


	afterEach ->
		expect(ok).toBeTruthy()
		list.onInsert.disconnect listener

	it 'works with append()', ->
		list = List [1, 2]
		list.onInsert listener

		list.append 'a'

