From fb6a489af2765a3b56e301adf0019af6bbad6156 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 24 Oct 2019 01:06:59 +0900 Subject: Revert "Method reference operator" This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b. [Feature #16275] --- test/ripper/test_parser_events.rb | 7 ------- test/ripper/test_scanner_events.rb | 2 -- 2 files changed, 9 deletions(-) (limited to 'test/ripper') diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index 1be2833a4b..feb3db05d8 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -443,13 +443,6 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal "[call(ref(self),&.,foo,[])]", tree end - def test_methref - thru_methref = false - tree = parse("obj.:foo", :on_methref) {thru_methref = true} - assert_equal true, thru_methref - assert_equal "[methref(vcall(obj),foo)]", tree - end - def test_excessed_comma thru_excessed_comma = false parse("proc{|x,|}", :on_excessed_comma) {thru_excessed_comma = true} diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 641310b384..d2f8479a33 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -562,8 +562,6 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase scan('op', ':[]=') assert_equal ['&.'], scan('op', 'a&.f') - assert_equal %w(.:), - scan('op', 'obj.:foo') assert_equal [], scan('op', %q[`make all`]) end -- cgit v1.2.1