struct DoublyLinkedListTest
static method onInit
local List.Doubly dll = List.Doubly.allocate()
local Object a = Object.allocate()
local Object b = Object.allocate()
local Object c = Object.allocate()
local Object d = Object.allocate()
call dll.insert(a)
call Assert.instance(dll.getHead(), a, 11)
call Assert.instance(dll.getLast(), a, 12)
local List.Iterator it = dll.createIterator()
call Assert.toBeTrue(it.hasNext(), 16)
call Assert.instance(a, it.getNext(), 17)
call Assert.toBeFalse(it.hasNext(), 18)
call dll.insert(b)
call dll.insert(c)
set it = dll.createIterator()
call Assert.instance(it.getNext(), a, 25)
call Assert.instance(it.getNext(), b, 26)
call Assert.instance(it.getNext(), c, 27)
endmethod
endstruct