1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Remove a test for reverted feature r26701.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-11-19 05:11:37 +00:00
parent ad64b9669f
commit 3c1f696a50

View file

@ -830,14 +830,6 @@ class TestRegexp < Test::Unit::TestCase
assert_nothing_raised { eval("a = 1; /\#{ a }/o; a") }
end
def test_optimize_last_anycharstar
s = "1" + " " * 5000000
assert_nothing_raised { s.match(/(\d) (.*)/) }
assert_equal("1", $1)
assert_equal(" " * 4999999, $2)
assert_match(/(?:A.+){2}/, 'AbAb')
end
def test_invalid_fragment
bug2547 = '[ruby-core:27374]'
assert_raise(SyntaxError, bug2547) {eval('/#{"\\\\"}y/')}