mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ae5081b7b
commit
5ed8ca1452
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Tue Oct 16 09:40:04 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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 <usa@ruby-lang.org>
|
Tue Oct 16 09:30:30 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* test/ruby/test_regexp.rb
|
* test/ruby/test_regexp.rb
|
||||||
|
|
|
@ -914,6 +914,7 @@ class TestRegexp < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_raw_hyphen_and_tk_char_type_after_range
|
def test_raw_hyphen_and_tk_char_type_after_range
|
||||||
bug6853 = '[ruby-core:47115]'
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue