diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-25 04:21:31 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-25 04:21:31 +0000 |
commit | 8c2ddab57a74377c108c3a5a58d2580f063d114b () | |
tree | 41e8728c581d32b76e9c54cc129c8e8bbbb6f708 /test/ruby/test_regexp.rb | |
parent | ef6405f71cbc73864a4ee4a46c9ab6d5ccd16959 (diff) |
* 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
-rw-r--r-- | test/ruby/test_regexp.rb | 3 |
1 files changed, 3 insertions, 0 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) end def test_options_in_look_behind |