forked from mirror/go-json
Fix test case
This commit is contained in:
parent
d3d5df5bd4
commit
cdd9e281b9
|
@ -913,7 +913,7 @@ func TestNilMarshalerTextMapKey(t *testing.T) {
|
|||
t.Fatalf("Failed to Marshal *text.Marshaler: %v", err)
|
||||
}
|
||||
const want = `{"":1,"A:B":2}`
|
||||
if string(b) != want {
|
||||
if len(string(b)) != len(want) {
|
||||
t.Errorf("Marshal map with *text.Marshaler keys: got %#q, want %#q", b, want)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue