(t *testing.T)
| 154 | } |
| 155 | |
| 156 | func TestNewFromFloatQuick(t *testing.T) { |
| 157 | err := quick.Check(func(f float64) bool { |
| 158 | want, werr := NewFromString(strconv.FormatFloat(f, 'f', -1, 64)) |
| 159 | if werr != nil { |
| 160 | return true |
| 161 | } |
| 162 | got := NewFromFloat(f) |
| 163 | return got.Equal(want) |
| 164 | }, &quick.Config{}) |
| 165 | if err != nil { |
| 166 | t.Error(err) |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | func TestNewFromFloat32Random(t *testing.T) { |
| 171 | n := 0 |
nothing calls this directly
no test coverage detected
searching dependent graphs…