diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-13 21:51:37 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-13 21:51:37 +0000 |
commit | b44ac42335a9c135cd67a9881341fbf74b4b13fe (patch) | |
tree | 1a17b1cb27993b6425356f9c99e60bc5d50ea8be /test/ruby | |
parent | 2437d06890aa0d10ba05d2cad0137dfa5fab0224 (diff) | |
download | ruby-b44ac42335a9c135cd67a9881341fbf74b4b13fe.tar.gz |
* regparse.c (add_ctype_to_cc): don't check dup warn on adding
negative ctype to cclass. [Bug #7471] [ruby-core:50344]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_regexp.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index faafe336ec..e9c866a9ca 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -906,6 +906,11 @@ class TestRegexp < Test::Unit::TestCase assert_warning(/duplicated/) { Regexp.new('[\u1000-\u2000\u3042-\u3046\u3044]') } assert_warning(/duplicated/) { Regexp.new('[\u3044\u3041-\u3047]') } assert_warning(/duplicated/) { Regexp.new('[\u3042\u3044\u3046\u3041-\u3047]') } + + bug7471 = '[ruby-core:50344]' + EnvUtil.verbose_warning do + assert_warning(/\A\z/, bug7471) { Regexp.new('[\D]') =~ "\u3042" } + end end def test_property_warn |