aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_m17n.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-22 07:31:25 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-22 07:31:25 +0000
commit25a30ffc471cf9b6675f8962b54b991000bf02e0 (patch)
tree1b79685dbd710bbfe5864827133fde1118bd6e47 /test/ruby/test_m17n.rb
parent0aa903d8d377a55f8cc23bf8f6523be1cfc5964a (diff)
downloadruby-25a30ffc471cf9b6675f8962b54b991000bf02e0.tar.gz
refine warning message for binary regexp /.../n.
Reported by Herwin W. [ruby-core:78592] [Bug #13024] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n.rb')
-rw-r--r--test/ruby/test_m17n.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index a16e49c27a..8e54f7207c 100644
--- a/test/ruby/test_m17n.rb
+++ b/test/ruby/test_m17n.rb
@@ -465,7 +465,7 @@ class TestM17N < Test::Unit::TestCase
def test_regexp_ascii_none
r = /a/n
- assert_warning(%r{regexp match /\.\.\./n against to}) {
+ assert_warning(%r{binary regexp match /\.\.\./n against}) {
assert_regexp_generic_ascii(r)
}
@@ -474,13 +474,13 @@ class TestM17N < Test::Unit::TestCase
assert_equal(0, r =~ s("a"))
assert_equal(0, r =~ u("a"))
assert_equal(nil, r =~ a("\xc2\xa1"))
- assert_warning(%r{regexp match /\.\.\./n against to EUC-JP string}) {
+ assert_warning(%r{binary regexp match /\.\.\./n against EUC-JP string}) {
assert_equal(nil, r =~ e("\xc2\xa1"))
}
- assert_warning(%r{regexp match /\.\.\./n against to Windows-31J string}) {
+ assert_warning(%r{binary regexp match /\.\.\./n against Windows-31J string}) {
assert_equal(nil, r =~ s("\xc2\xa1"))
}
- assert_warning(%r{regexp match /\.\.\./n against to UTF-8 string}) {
+ assert_warning(%r{binary regexp match /\.\.\./n against UTF-8 string}) {
assert_equal(nil, r =~ u("\xc2\xa1"))
}
@@ -725,7 +725,7 @@ class TestM17N < Test::Unit::TestCase
def test_union_1_regexp
assert_regexp_generic_ascii(Regexp.union(//))
- assert_warning(%r{regexp match /.../n against to}) {
+ assert_warning(%r{binary regexp match /.../n against}) {
assert_regexp_generic_ascii(Regexp.union(//n))
}
assert_regexp_fixed_eucjp(Regexp.union(//e))
@@ -768,7 +768,7 @@ class TestM17N < Test::Unit::TestCase
end
def test_dynamic_ascii_regexp
- assert_warning(%r{regexp match /.../n against to}) {
+ assert_warning(%r{binary regexp match /.../n against}) {
assert_regexp_generic_ascii(/#{ }/n)
}
assert_regexp_fixed_ascii8bit(/#{ }\xc2\xa1/n)