(t *testing.T)
| 191 | } |
| 192 | |
| 193 | func TestNewFromFloat32Quick(t *testing.T) { |
| 194 | err := quick.Check(func(f float32) bool { |
| 195 | want, werr := NewFromString(strconv.FormatFloat(float64(f), 'f', -1, 32)) |
| 196 | if werr != nil { |
| 197 | return true |
| 198 | } |
| 199 | got := NewFromFloat32(f) |
| 200 | return got.Equal(want) |
| 201 | }, &quick.Config{}) |
| 202 | if err != nil { |
| 203 | t.Error(err) |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | func TestNewFromString(t *testing.T) { |
| 208 | for _, x := range testTable { |
nothing calls this directly
no test coverage detected
searching dependent graphs…