- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestMinMaxPanics (0.17 sec)
-
src/slices/sort_test.go
if !math.IsNaN(fmin) { t.Errorf("got min %v, want NaN", fmin) } fmax := Max(testfs) if !math.IsNaN(fmax) { t.Errorf("got max %v, want NaN", fmax) } } } func TestMinMaxPanics(t *testing.T) { intCmp := func(a, b int) int { return a - b } emptySlice := []int{} if !panics(func() { Min(emptySlice) }) { t.Errorf("Min([]): got no panic, want panic") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 19:20:55 UTC 2024 - 9.5K bytes - Viewed (0)