diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-25 11:22:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-25 11:22:49 +0000 |
commit | d4e84dd0bf6ed838f4668811bac547d6e64fa707 (patch) | |
tree | 3a1fa4cd66d1b1c39e25ffb7403b0b8c8967dd65 /test/ripper | |
parent | 861b7d781eb4e1d0eb2b3862bcf48e0cfc564a40 (diff) |
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
Diffstat (limited to 'test/ripper')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 2474588f76..ac34ac57df 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -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 |