mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Update comments for pack/unpack tests [ci skip]
More comprehensive pack/unpack tests are in test_pack.rb.
This commit is contained in:
parent
ec01cd9bbb
commit
a9eed306aa
2 changed files with 2 additions and 51 deletions
|
@ -1309,32 +1309,7 @@ class TestArray < Test::Unit::TestCase
|
|||
assert_equal(ary.join(':'), ary2.join(':'))
|
||||
assert_not_nil(x =~ /def/)
|
||||
|
||||
=begin
|
||||
skipping "Not tested:
|
||||
D,d & double-precision float, native format\\
|
||||
E & double-precision float, little-endian byte order\\
|
||||
e & single-precision float, little-endian byte order\\
|
||||
F,f & single-precision float, native format\\
|
||||
G & double-precision float, network (big-endian) byte order\\
|
||||
g & single-precision float, network (big-endian) byte order\\
|
||||
I & unsigned integer\\
|
||||
i & integer\\
|
||||
L & unsigned long\\
|
||||
l & long\\
|
||||
|
||||
N & long, network (big-endian) byte order\\
|
||||
n & short, network (big-endian) byte-order\\
|
||||
P & pointer to a structure (fixed-length string)\\
|
||||
p & pointer to a null-terminated string\\
|
||||
S & unsigned short\\
|
||||
s & short\\
|
||||
V & long, little-endian byte order\\
|
||||
v & short, little-endian byte order\\
|
||||
X & back up a byte\\
|
||||
x & null byte\\
|
||||
Z & ASCII string (null padded, count is width)\\
|
||||
"
|
||||
=end
|
||||
# more comprehensive tests are in test_pack.rb
|
||||
end
|
||||
|
||||
def test_pack_with_buffer
|
||||
|
|
|
@ -2469,31 +2469,7 @@ CODE
|
|||
|
||||
assert_equal([0xa9, 0x42, 0x2260], S("\xc2\xa9B\xe2\x89\xa0").unpack(S("U*")))
|
||||
|
||||
=begin
|
||||
skipping "Not tested:
|
||||
D,d & double-precision float, native format\\
|
||||
E & double-precision float, little-endian byte order\\
|
||||
e & single-precision float, little-endian byte order\\
|
||||
F,f & single-precision float, native format\\
|
||||
G & double-precision float, network (big-endian) byte order\\
|
||||
g & single-precision float, network (big-endian) byte order\\
|
||||
I & unsigned integer\\
|
||||
i & integer\\
|
||||
L & unsigned long\\
|
||||
l & long\\
|
||||
m & string encoded in base64 (uuencoded)\\
|
||||
N & long, network (big-endian) byte order\\
|
||||
n & short, network (big-endian) byte-order\\
|
||||
P & pointer to a structure (fixed-length string)\\
|
||||
p & pointer to a null-terminated string\\
|
||||
S & unsigned short\\
|
||||
s & short\\
|
||||
V & long, little-endian byte order\\
|
||||
v & short, little-endian byte order\\
|
||||
X & back up a byte\\
|
||||
x & null byte\\
|
||||
Z & ASCII string (null padded, count is width)\\"
|
||||
=end
|
||||
# more comprehensive tests are in test_pack.rb
|
||||
end
|
||||
|
||||
def test_upcase
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue