- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TestMinMax (0.21 sec)
-
src/runtime/minmax_test.go
t.Errorf("max(%v, %v) = %v, want %v", y, x, z, y) } } } } func TestMinMaxInt(t *testing.T) { testMinMax[int](t, -7, 0, 9) } func TestMinMaxUint8(t *testing.T) { testMinMax[uint8](t, 0, 1, 2, 4, 7) } func TestMinMaxString(t *testing.T) { testMinMax[string](t, "a", "b", "c") } // TestMinMaxStringTies ensures that min(a, b) returns a when a == b. func TestMinMaxStringTies(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 01:41:50 UTC 2024 - 3.6K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/imagelocality/image_locality_test.go
Image: "gcr.io/250", }, }, } test40300 := v1.PodSpec{ Containers: []v1.Container{ { Image: "gcr.io/40", }, { Image: "gcr.io/300", }, }, } testMinMax := v1.PodSpec{ Containers: []v1.Container{ { Image: "gcr.io/10", }, { Image: "gcr.io/4000", }, }, } test300600900 := v1.PodSpec{ Containers: []v1.Container{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 06:17:57 UTC 2024 - 10.3K bytes - Viewed (0) -
src/slices/sort_test.go
t.Errorf("Stable wasn't stable on %d ints", n) } } type S struct { a int b string } func cmpS(s1, s2 S) int { return cmp.Compare(s1.a, s2.a) } func TestMinMax(t *testing.T) { intCmp := func(a, b int) int { return a - b } tests := []struct { data []int wantMin int wantMax int }{ {[]int{7}, 7, 7}, {[]int{1, 2}, 1, 2},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 19:20:55 UTC 2024 - 9.5K bytes - Viewed (0)