(t *testing.T, exp, val float64)
| 36 | } |
| 37 | |
| 38 | func checkFloats(t *testing.T, exp, val float64) { |
| 39 | if math.IsNaN(val) { |
| 40 | if !math.IsNaN(exp) { |
| 41 | require.Fail(t, "expected %s got NaN", exp) |
| 42 | } |
| 43 | } else if math.IsNaN(exp) { |
| 44 | require.Fail(t, "expected NaN, got %s", val) |
| 45 | } else { |
| 46 | require.Equal(t, exp, val) |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func TestMinGauges(t *testing.T) { |
| 51 | type testcase struct { |
no test coverage detected