summaryrefslogtreecommitdiff
path: root/test/ruby/test_regexp.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-13 05:46:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-13 05:46:30 +0000
commit0c467565ca9b9e9f3f99010044aa839eb1631454 ()
tree393cbb5a1f12cf6c43d3ba0844afd2d4baafafe7 /test/ruby/test_regexp.rb
parentfdb64a1a44ddfe519b212e60f4578c17741d0292 (diff)
test_regexp.rb: test_absent
* test/ruby/test_regexp.rb (test_absent): add simple tests for absent operator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_regexp.rb8
1 files changed, 8 insertions, 0 deletions
@@ -1232,6 +1232,14 @@ class TestRegexp < Test::Unit::TestCase
end;
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)