- fix arraylist test

pull/134/head
yuanjin 6 years ago
parent 3ba27e24d3
commit edc20eca0a

@ -125,7 +125,7 @@ func TestListSwap(t *testing.T) {
list.Add("b", "c") list.Add("b", "c")
list.Swap(0, 1) list.Swap(0, 1)
if actualValue, ok := list.Get(0); actualValue != "b" || !ok { if actualValue, ok := list.Get(0); actualValue != "b" || !ok {
t.Errorf("Got %v expected %v", actualValue, "c") t.Errorf("Got %v expected %v", actualValue, "b")
} }
} }

Loading…
Cancel
Save