summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_regexp.rb6
1 files changed, 6 insertions, 0 deletions
@@ -1312,6 +1312,12 @@ class TestRegexp < Test::Unit::TestCase
assert_nil($1)
end
# This assertion is for porting x2() tests in testpy.py of Onigmo.
def assert_match_at(re, str, positions, msg = nil)
re = Regexp.new(re) unless re.is_a?(Regexp)