summaryrefslogtreecommitdiff
path: root/test/ruby/test_regexp.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-18 10:37:13 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-18 10:37:13 +0000
commitf09574c879fe9a4488164a41b453617b4b1d56bb ()
tree4cde28960bec2ae35fa9a1c1c0d65900d940d8f3 /test/ruby/test_regexp.rb
parent898aeb87792e952ba831931c2212baa50d81b62e (diff)
* re.c (rb_reg_match_m_p): Introduce Regexp#match?, which returns
bool and doesn't save backref. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_regexp.rb13
1 files changed, 13 insertions, 0 deletions
@@ -526,6 +526,19 @@ class TestRegexp < Test::Unit::TestCase
$_ = nil; assert_nil(~/./)
end
def test_eqq
assert_equal(false, /../ === nil)
end