diff --git a/ChangeLog b/ChangeLog index ac6f50a694..4d227955db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Fri Jul 5 16:01:21 2013 Akinori MUSHA + + * test/ruby/test_regexp.rb + (TestRegexp#test_options_in_look_behind) + (TestRegexp#assert_match_at): Add tests for another problem + fixed in Onigmo 5.13.5. Previously Onigmo did not allow option + enclosures in look-behind, which makes it impossible to + interpolate a regexp into another in the middle of a look-behind + pattern. cf. https://github.com/k-takata/Onigmo/pull/17 + Fri Jul 5 12:14:40 2013 NAKAMURA Usaku * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_notfound): after @@ -19,7 +29,6 @@ Fri Jul 5 11:08:00 2013 NAKAMURA Usaku test/webrick. Fri Jul 5 09:53:15 2013 NARUSE, Yui - * lib/mkmf.rb (CONFIG['CPPOUTFILE']): fix r41769; CONFIG['CPPOUTFILE'] may be nil. diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index f13a900634..2bfbd9dff9 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -944,6 +944,38 @@ class TestRegexp < Test::Unit::TestCase assert_match_each(/\A((?x)|(?y))(?()y|x)\z/, conds, bug8583) end + def test_options_in_look_behind + assert_nothing_raised { + assert_match_at(/(?<=(?i)ab)cd/, "ABcd", [[2,4]]) + assert_match_at(/(?<=(?i:ab))cd/, "ABcd", [[2,4]]) + assert_match_at(/(?