diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-12 16:38:52 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-12 16:38:52 +0000 |
commit | 5ea65366f5786f3f88837d8f9f7a2303cd813144 (patch) | |
tree | e0bd274de111aac1077b1439b4220484c2f0fe91 /test/ruby | |
parent | 5eb3f9cbaf3a3a77543c50b93e50063ed9bccafb (diff) | |
download | ruby-5ea65366f5786f3f88837d8f9f7a2303cd813144.tar.gz |
* 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/trunk@37171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_regexp.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 7e31e99aa7..7238e55fe1 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -911,4 +911,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 |