mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
% x inserts spaces between hex bytes in string/*[]byte
R=r DELTA=7 (7 added, 0 deleted, 0 changed) OCL=19967 CL=19978
This commit is contained in:
parent
ed490dbed8
commit
afff0ff1b8
2 changed files with 4 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ var fmttests = []FmtTest{
|
|||
// basic bytes
|
||||
FmtTest{ "%s", Bytes("abc"), "abc" },
|
||||
FmtTest{ "%x", Bytes("abc"), "616263" },
|
||||
FmtTest{ "% x", Bytes("abc"), "61 62 63" },
|
||||
FmtTest{ "%x", Bytes("xyz"), "78797a" },
|
||||
FmtTest{ "%X", Bytes("xyz"), "78797A" },
|
||||
FmtTest{ "%q", Bytes("abc"), `"abc"` },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue