зеркало из https://github.com/github/ruby.git
test/ripper/test_scanner_events.rb: fill empty test methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
861b7d781e
Коммит
d4e84dd0bf
|
@ -874,15 +874,23 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_label
|
||||
assert_equal %w(foo:),
|
||||
scan('label', '{foo: 1}')
|
||||
end
|
||||
|
||||
def test_tlambda
|
||||
assert_equal %w(->),
|
||||
scan('tlambda', '->{}')
|
||||
end
|
||||
|
||||
def test_tlambeg
|
||||
assert_equal %w({),
|
||||
scan('tlambeg', '-> {}')
|
||||
end
|
||||
|
||||
def test_tlambda_arg
|
||||
assert_equal %w(),
|
||||
scan('tlambda_arg', '-> {}')
|
||||
end
|
||||
|
||||
end if ripper_test
|
||||
|
|
Загрузка…
Ссылка в новой задаче