mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
* regcomp.c (compile_length_tree): return error code immediately
if compile_length_tree raised error [Bug #12418] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ef6405f71c
commit
8c2ddab57a
3 changed files with 15 additions and 5 deletions
|
@ -1078,6 +1078,9 @@ class TestRegexp < Test::Unit::TestCase
|
|||
conds = {"xy"=>true, "yx"=>true, "xx"=>false, "yy"=>false}
|
||||
assert_match_each(/\A((x)|(y))(?(2)y|x)\z/, conds, bug8583)
|
||||
assert_match_each(/\A((?<x>x)|(?<y>y))(?(<x>)y|x)\z/, conds, bug8583)
|
||||
|
||||
bug12418 = '[ruby-core:75694] [Bug #12418]'
|
||||
assert_raise(RegexpError, bug12418){ Regexp.new('(0?0|(?(5)||)|(?(5)||))?') }
|
||||
end
|
||||
|
||||
def test_options_in_look_behind
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue