- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CheckListLen (0.13 sec)
-
src/container/list/list_test.go
package list import "testing" func checkListLen(t *testing.T, l *List, len int) bool { if n := l.Len(); n != len { t.Errorf("l.Len() = %d, want %d", n, len) return false } return true } func checkListPointers(t *testing.T, l *List, es []*Element) { root := &l.root if !checkListLen(t, l, len(es)) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 7.7K bytes - Viewed (0) -
test/typeparam/listimp2.dir/main.go
for e := l2.Front(); e != nil; e = next { next = e.Next() l2.Remove(e) } a.CheckListPointers(l2, []*(a.Element[int]){}) } func checkList[T comparable](l *a.List[T], es []interface{}) { if !a.CheckListLen(l, len(es)) { return } i := 0 for e := l.Front(); e != nil; e = e.Next() { le := e.Value // Comparison between a generically-typed variable le and an interface. if le != es[i] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 7.4K bytes - Viewed (0)