diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-31 11:12:16 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-08-01 19:00:31 +0900 |
commit | 382678d4112f4afc6272244c22924d2b004274b1 (patch) | |
tree | 26f231006819b9d4099dbdd0f2b24c544853f13e /test/ripper/test_scanner_events.rb | |
parent | 6a5c548218035bfdaf226c7ab1d0af37c9480900 (diff) |
[Bug #19788] Use the result of `tCOLON2` event
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8144
Diffstat (limited to 'test/ripper/test_scanner_events.rb')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 5d6ac615ca..8434cc9c40 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -179,6 +179,11 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase scan('backtick', %q[p `make all`]) end + def test_colon2_call + assert_equal ["::"], + scan('op', %q[ a::b ]) + end + def test_comma assert_equal [','] * 6, scan('comma', %q[ m(0,1,2,3,4,5,6) ]) |