(t *testing.T)
| 231 | } |
| 232 | |
| 233 | func TestStringify_Floats(t *testing.T) { |
| 234 | t.Parallel() |
| 235 | tests := []struct { |
| 236 | in any |
| 237 | out string |
| 238 | }{ |
| 239 | {float32(1.1), "1.1"}, |
| 240 | {float64(1.1), "1.1"}, |
| 241 | {float32(1.0000001), "1.0000001"}, |
| 242 | {struct{ F float32 }{1.1}, "{F:1.1}"}, |
| 243 | } |
| 244 | |
| 245 | for i, tt := range tests { |
| 246 | s := Stringify(tt.in) |
| 247 | if s != tt.out { |
| 248 | t.Errorf("%v. Stringify(%v) = %q, want %q", i, tt.in, s, tt.out) |
| 249 | } |
| 250 | } |
| 251 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…