mirror of
https://github.com/zhigang1992/cow.git
synced 2026-04-30 18:32:31 +08:00
Use %q to print test raw string.
This commit is contained in:
@@ -22,7 +22,7 @@ func TestSendBodyChunked(t *testing.T) {
|
||||
|
||||
sendBodyChunked(buf, r, &w)
|
||||
if w.String() != td.raw {
|
||||
t.Errorf("sendBodyChunked wrong, raw data is:\n%sgot:%s\n", td.raw, w.String())
|
||||
t.Errorf("sendBodyChunked wrong, raw data is:\n%qgot:%q\n", td.raw, w.String())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user