 		expect(copy).toEqual [1]
 
 	it 'works with clear()', ->
-		list = List 1, 2
-		list.onPopped listener
+		list = List [1, 2]
+		list.onPop listener
 
 		list.clear()
 


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

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

		list.append 'a'


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
