Skip to content

Commit 2ac3821

Browse files
authored
Fix for the failing tests in go/master due to changes in %q
Both of the types are not used outside of this file. Implementing Stringer for them would be an overkill and would depend on the conversion being tested.
1 parent 609f16f commit 2ac3821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encoding/decoder_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func TestDecodeUnmarshalerPointer(t *testing.T) {
433433
t.Errorf("got error %v, expected nil", err)
434434
}
435435
if !jsonEqual(out, want) {
436-
t.Errorf("got %q, want %q", out, want)
436+
t.Errorf("got %+v, want %+v", out, want)
437437
}
438438
}
439439

@@ -587,7 +587,7 @@ func TestDecodeCustomTypeEncodingPointer(t *testing.T) {
587587
t.Errorf("got error %v, expected nil", err)
588588
}
589589
if !jsonEqual(out, want) {
590-
t.Errorf("got %q, want %q", out, want)
590+
t.Errorf("got %+v, want %+v", out, want)
591591
}
592592
}
593593

0 commit comments

Comments
 (0)