Skip to content

Commit 5ea1804

Browse files
committed
Update write_test
1 parent c758c24 commit 5ea1804

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

io/writer_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ func TestSerializeFloat32(t *testing.T) {
298298
float32(math.Inf(1)): "I+",
299299
float32(math.Inf(-1)): "I-",
300300
float32(3.14159): "d3.14159;",
301+
math.MaxFloat32: "d3.4028235e+38;",
301302
}
302303
for k, v := range testdata {
303304
w.Serialize(k)
@@ -329,6 +330,7 @@ func TestSerializeFloat64(t *testing.T) {
329330
math.Inf(1): "I+",
330331
math.Inf(-1): "I-",
331332
3.14159265358979: "d3.14159265358979;",
333+
math.MaxFloat64: "d1.7976931348623157e+308;",
332334
}
333335
for k, v := range testdata {
334336
w.Serialize(k)

0 commit comments

Comments
 (0)