mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 03:53:58 +02:00
* pack.c (pack_unpack): output characters even if the input doesn't
have paddings. [Bug #8286] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2446c96547
commit
3e2fdaf1dd
3 changed files with 11 additions and 2 deletions
|
@ -545,6 +545,10 @@ EXPECTED
|
|||
assert_equal(["\377"], "/w==\n".unpack("m"))
|
||||
assert_equal(["\377\377"], "//8=\n".unpack("m"))
|
||||
assert_equal(["\377\377\377"], "////\n".unpack("m"))
|
||||
assert_equal([""], "A\n".unpack("m"))
|
||||
assert_equal(["\0"], "AA\n".unpack("m"))
|
||||
assert_equal(["\0"], "AA=\n".unpack("m"))
|
||||
assert_equal(["\0\0"], "AAA\n".unpack("m"))
|
||||
end
|
||||
|
||||
def test_pack_unpack_m0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue