7 func TestOrderedList(t *testing.T) {
8 ol := newOrderedList(func(a, b interface{}) bool {
9 return a.(int) < b.(int)
18 if e.Value.(int) != 0 {
22 if e.Value.(int) != 0 {
29 if e.Next().Value.(int) != 1 {
33 if e.Prev().Value.(int) != -1 {
41 if e.Next().Value.(int) != -1 {