ruby-changes:44981
From: nobu <ko1@a...>
Date: Mon, 12 Dec 2016 12:07:52 +0900 (JST)
Subject: [ruby-changes:44981] nobu:r57054 (trunk): test_m17n.rb: escape
nobu 2016-12-12 12:07:47 +0900 (Mon, 12 Dec 2016) New Revision: 57054 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57054 Log: test_m17n.rb: escape * test/ruby/test_m17n.rb (test_regexp_ascii_none): escape regexp meta characters. Modified files: trunk/test/ruby/test_m17n.rb Index: test/ruby/test_m17n.rb =================================================================== --- test/ruby/test_m17n.rb (revision 57053) +++ test/ruby/test_m17n.rb (revision 57054) @@ -465,7 +465,7 @@ class TestM17N < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_m17n.rb#L465 def test_regexp_ascii_none r = /a/n - assert_warning(%r{regexp match /.../n against to}) { + assert_warning(%r{regexp match /\.\.\./n against to}) { assert_regexp_generic_ascii(r) } @@ -474,13 +474,13 @@ class TestM17N < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_m17n.rb#L474 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{regexp match /\.\.\./n against to EUC-JP string}) { assert_equal(nil, r =~ e("\xc2\xa1")) } - assert_warning(%r{regexp match /.../n against to Windows-31J string}) { + assert_warning(%r{regexp match /\.\.\./n against to Windows-31J string}) { assert_equal(nil, r =~ s("\xc2\xa1")) } - assert_warning(%r{regexp match /.../n against to UTF-8 string}) { + assert_warning(%r{regexp match /\.\.\./n against to UTF-8 string}) { assert_equal(nil, r =~ u("\xc2\xa1")) } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/