diff options
author | Russ Cox <rsc@golang.org> | 2008-11-25 09:23:13 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-11-25 09:23:13 -0800 |
commit | c2bc9b1490f473959869c337c53d253709fe0b59 (patch) | |
tree | 6404db750b0739f17a7d8ca4c7790448a231826f /src/lib/fmt/fmt_test.go | |
parent | cee312230dfe073d6b5e8bbd3ad4fa4c3554609a (diff) | |
download | golang-c2bc9b1490f473959869c337c53d253709fe0b59.tar.gz |
% x inserts spaces between hex bytes in string/*[]byte
R=r
DELTA=7 (7 added, 0 deleted, 0 changed)
OCL=19967
CL=19978
Diffstat (limited to 'src/lib/fmt/fmt_test.go')
-rw-r--r-- | src/lib/fmt/fmt_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/fmt/fmt_test.go b/src/lib/fmt/fmt_test.go index ec1e9951b..4b423c617 100644 --- a/src/lib/fmt/fmt_test.go +++ b/src/lib/fmt/fmt_test.go @@ -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"` }, |