summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDominic Dunlop <domo@computer.org>2006-06-20 18:02:38 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-06-20 14:18:28 +0000
commit1387f30c3a0e2c0d15467578b3cb17d441a9efff (patch)
treebaef92c0092bbbde4a8e21f383edef8cd206bbcb /t
parente7d4598618188806a059004bf5be463e5ed0033b (diff)
downloadperl-1387f30c3a0e2c0d15467578b3cb17d441a9efff.tar.gz
Re: [perl #39530] printf: bad formatting of hexadecimal conversion of binary string using vector flag
Message-Id: <D223CF35-9AC3-4351-A0C9-F4E224AAC19E@mac.com> p4raw-id: //depot/perl@28408
Diffstat (limited to 't')
-rwxr-xr-xt/op/sprintf.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/op/sprintf.t b/t/op/sprintf.t
index b0f8c02cdb..3e038d4aba 100755
--- a/t/op/sprintf.t
+++ b/t/op/sprintf.t
@@ -434,6 +434,18 @@ __END__
>%v_< >''< >%v_ INVALID<
>%v#x< >''< >%v#x INVALID<
>%v02x< >"foo\012"< >66.6f.6f.0a<
+>%#v.8b< >"a\000b"< >0b01100001.00000000.0b01100010<
+>%#v.4o< >"a\000b"< >0141.0000.0142<
+>%#v.3i< >"a\000b"< >097.000.098<
+>%#v.2x< >"a\000b"< >0x61.00.0x62<
+>%#*v.8b< >["][", "a\000b"]< >0b01100001][00000000][0b01100010<
+>%#*v.4o< >["][", "a\000b"]< >0141][0000][0142<
+>%#*v.3i< >["][", "a\000b"]< >097][000][098<
+>%#*v.2x< >["][", "a\000b"]< >0x61][00][0x62<
+>%#v.8b< >"a\x{1e01}\000b\x{1e03}"< >0b01100001.0b1111000000001.00000000.0b01100010.0b1111000000011<
+>%#v.4o< >"a\x{1e01}\000b\x{1e03}"< >0141.017001.0000.0142.017003<
+>%#v.3i< >"a\x{1e01}\000b\x{1e03}"< >097.7681.000.098.7683<
+>%#v.2x< >"a\x{1e01}\000b\x{1e03}"< >0x61.0x1e01.00.0x62.0x1e03<
>%V-%s< >["Hello"]< >%V-Hello INVALID<
>%K %d %d< >[13, 29]< >%K 13 29 INVALID<
>%*.*K %d< >[13, 29, 76]< >%*.*K 13 INVALID<