- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CheckListLen (0.22 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/a.go
ret.PushBack(f(p.Value)) } return ret } func CheckListLen[T any](l *List[T], len int) bool { if n := l.Len(); n != len { panic(fmt.Sprintf("l.Len() = %d, want %d", n, len)) return false } return true } func CheckListPointers[T any](l *List[T], es []*Element[T]) { root := &l.root if !CheckListLen(l, len(es)) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:40:40 UTC 2021 - 8K bytes - Viewed (0) -
test/typeparam/list2.go
ret.PushBack(f(p.Value)) } return ret } func checkListLen[T any](l *_List[T], len int) bool { if n := l.Len(); n != len { panic(fmt.Sprintf("l.Len() = %d, want %d", n, len)) return false } return true } func checkListPointers[T any](l *_List[T], es []*_Element[T]) { root := &l.root if !checkListLen(l, len(es)) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 15.3K 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)