diff --git a/ChangeLog b/ChangeLog index 26463851aa..af89d2e169 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Oct 16 09:40:04 2012 NAKAMURA Usaku + + * test/ruby/test_regexp.rb + (TextRegexp#test_raw_hyphen_and_tk_char_type_after_range): use + Regexp.new instead of literal to ignore a parser warning. + Tue Oct 16 09:30:30 2012 NAKAMURA Usaku * test/ruby/test_regexp.rb diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 781e8e11c5..0825e945fd 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -914,6 +914,7 @@ class TestRegexp < Test::Unit::TestCase def test_raw_hyphen_and_tk_char_type_after_range bug6853 = '[ruby-core:47115]' - check(/[0-1-\s]/, [' ', '-'], ['2', 'a'], bug6853) + # use Regexp.new instead of literal to ignore a parser warning. + check(Regexp.new('[0-1-\\s]'), [' ', '-'], ['2', 'a'], bug6853) end end