summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 08:06:58 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 08:06:58 +0000
commit931e3b6a67d7e65961ab350f8cef58d7515bcc07 (patch)
treeb440454298aa48dfec88a1c64b30e8139b1aeb40 /test
parentcd504997011c0078df5725ad9b751d05cd83f248 (diff)
merges r29453 from trunk into ruby_1_9_2.
-- * string.c (rb_str_concat): use unsigned int for GB18030. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_m17n_comb.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_m17n_comb.rb b/test/ruby/test_m17n_comb.rb
index cf80377172..e730f6f0e8 100644
--- a/test/ruby/test_m17n_comb.rb
+++ b/test/ruby/test_m17n_comb.rb
@@ -346,6 +346,9 @@ class TestM17NComb < Test::Unit::TestCase
assert_raise(Encoding::CompatibilityError) { s << s2 }
end
}
+
+ assert_equal("A\x84\x31\xA4\x39".force_encoding("GB18030"),
+ "A".force_encoding("GB18030") << 0x8431A439)
end
def test_str_aref