mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 05:59:00 +02:00
merge revision(s) 37171:
* test/ruby/test_regexp.rb (TestRegexp#test_raw_hyphen_and_type_char_after_range): added new test. ref [ruby-core:47115] [Backport #6853] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b12a9cfb59
commit
cc251c2f9f
3 changed files with 19 additions and 3 deletions
|
@ -867,4 +867,14 @@ class TestRegexp < Test::Unit::TestCase
|
|||
assert_match(/invalid hex escape/, error.message)
|
||||
assert_equal(1, error.message.scan(/.*invalid .*escape.*/i).size, bug3539)
|
||||
end
|
||||
|
||||
def test_raw_hyphen_and_type_char_after_range
|
||||
bug6853 = '[ruby-core:47115]'
|
||||
begin
|
||||
verbose, $VERBOSE = $VERBOSE, nil
|
||||
assert_match(/[0-1-\s]/, ' ', bug6853)
|
||||
ensure
|
||||
$VERBOSE = verbose
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue