1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00
This commit is contained in:
2022-11-18 17:35:01 +08:00
parent 299e09f8e3
commit 1f8789e7eb
2 changed files with 22 additions and 15 deletions

View File

@ -87,12 +87,17 @@ func BenchmarkLinkedList(b *testing.B) {
}
func TestRemoveNode(t *testing.T) {
l := list.NewLinkedList(1, 2, 4)
l := list.NewLinkedList(1, 2, 3, 4, 5)
l.ForEach(func(i int) bool {
t.Log(i)
// l.ForEach(func(i int) bool {
// t.Log(i)
return false
})
// return false
// })
l.RemoveAt(1)
for currnet := l.FrontNode(); currnet != nil; currnet = currnet.Next {
t.Logf("%p %+v", currnet, currnet)
}
}