зеркало из https://github.com/github/ruby.git
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:
Родитель
ad64b9669f
Коммит
3c1f696a50
|
@ -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/')}
|
||||
|
|
Загрузка…
Ссылка в новой задаче