summaryrefslogtreecommitdiff
path: root/test/ripper
diff options
context:
space:
mode:
Diffstat (limited to 'test/ripper')
-rw-r--r--test/ripper/test_scanner_events.rb8
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