diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-22 07:04:00 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-22 07:04:00 +0000 |
commit | 15c78e30d6a2874860d5b8b398cb8e939f2055b4 (patch) | |
tree | 33765ca4d7f189b8c2c06c887a6593b8390ade14 /test/ruby | |
parent | a48704106d10cba8794e828f22aa45e0c3c758cd (diff) | |
download | ruby-15c78e30d6a2874860d5b8b398cb8e939f2055b4.tar.gz |
Fix a target method of a test
* test/ruby/test_string.rb (test_delete): I guess
this line should be a test case which asserts
coderange is handled correctly when a result of
String#delete has non-ASCII characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 ed95d8013d..7dd76f76f7 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -673,7 +673,7 @@ CODE assert_equal("a".hash, "a\u0101".delete("\u0101").hash, '[ruby-talk:329267]') assert_equal(true, "a\u0101".delete("\u0101").ascii_only?) assert_equal(true, "a\u3041".delete("\u3041").ascii_only?) - assert_equal(false, "a\u3041\u3042".tr("\u3041", "a").ascii_only?) + assert_equal(false, "a\u3041\u3042".delete("\u3041").ascii_only?) assert_equal("a", "abc\u{3042 3044 3046}".delete("^a")) assert_equal("bc\u{3042 3044 3046}", "abc\u{3042 3044 3046}".delete("a")) |