diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-01 07:11:40 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-01 07:11:40 +0000 |
commit | b3c42a2e4193efc0ee3eb565a3510cf7efe7f75a (patch) | |
tree | cd071e74d43dfea5ec4c6fb4dd0d21607ecd2bd9 /test | |
parent | f2d2dfe9ca4a50bc88a5c3ff8242433f82ea7e75 (diff) |
merge revision(s) 26103:
* string.c (rb_str_inspect): wrong result of UTF-8 inspect because of
the mistake of calculation. reported by eban via IRC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@27145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_string.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index cb1bd575e5..5f2c54f44a 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -24,7 +24,7 @@ class TestString < Test::Unit::TestCase assert_equal('"\343\201\202"', "\xe3\x81\x82".inspect) $KCODE = 'u' - assert_equal('"\\343\\201\\202"', "\xe3\x81\x82".inspect) + assert_equal("\"\343\201\202\"", "\xe3\x81\x82".inspect) assert_no_match(/\0/, "\xe3\x81".inspect, '[ruby-dev:39550]') ensure $KCODE = original_kcode |