- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestMinMaxInt (0.16 sec)
-
src/runtime/minmax_test.go
if z := max(x, y); z != y { t.Errorf("max(%v, %v) = %v, want %v", x, y, z, y) } if z := max(y, x); z != y { 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") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 26 01:41:50 UTC 2024 - 3.6K bytes - Viewed (0)