diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-04 05:07:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-04 05:07:21 +0000 |
commit | 4b146b25333c52ca4503dfc3c4215b583e8e9963 (patch) | |
tree | 49a58a57b9bb34ed0d35af273ad9ed46bc95403b /test/ruby/test_pack.rb | |
parent | bebc52a4a721a1c1d5a98760d58df296ff0d2497 (diff) |
pack.c: use ivar for associated objects
* pack.c (str_associate, str_associated): keep associated objects
in an instance variables, instead of in the internal structure.
* string.c (rb_str_associate, rb_str_associated): deprecate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_pack.rb')
-rw-r--r-- | test/ruby/test_pack.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_pack.rb b/test/ruby/test_pack.rb index 3f0931bdc0..38c1981a44 100644 --- a/test/ruby/test_pack.rb +++ b/test/ruby/test_pack.rb @@ -181,7 +181,7 @@ class TestPack < Test::Unit::TestCase assert_equal a[0], a.pack("p").unpack("p")[0] assert_equal a, a.pack("p").freeze.unpack("p*") assert_raise(ArgumentError) { (a.pack("p") + "").unpack("p*") } - assert_raise(ArgumentError) { (a.pack("p") << "d").unpack("p*") } + assert_equal a, (a.pack("p") << "d").unpack("p*") end def test_format_string_modified |