mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
list
This commit is contained in:
@ -85,3 +85,14 @@ func BenchmarkLinkedList(b *testing.B) {
|
||||
l.PushBack(i)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRemoveNode(t *testing.T) {
|
||||
l := list.NewLinkedList(1, 2, 4)
|
||||
|
||||
l.ForEach(func(i int) bool {
|
||||
t.Log(i)
|
||||
|
||||
return false
|
||||
})
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user