From 837babd56459aafc1232a12fbfa783025d619b98 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 6 Nov 2015 03:39:23 +0000 Subject: change DOTQ * defs/id.def (token_ops), parse.y (parser_yylex): change DOTQ from ".?" to "&.". [ruby-core:71363] [Feature #11537] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ripper/test_parser_events.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/ripper/test_parser_events.rb') diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index 9fa65fa89b..fec01f10d2 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -391,14 +391,14 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal "[call(vcall(foo),::,call,[])]", tree thru_call = false - tree = parse("self.?foo", :on_call) {thru_call = true} + tree = parse("self&.foo", :on_call) {thru_call = true} assert_equal true, thru_call - assert_equal "[call(ref(self),.?,foo)]", tree + assert_equal "[call(ref(self),&.,foo)]", tree thru_call = false - tree = parse("self.?foo()", :on_call) {thru_call = true} + tree = parse("self&.foo()", :on_call) {thru_call = true} assert_equal true, thru_call - assert_equal "[call(ref(self),.?,foo,[])]", tree + assert_equal "[call(ref(self),&.,foo,[])]", tree end def test_excessed_comma @@ -569,7 +569,7 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal("[defs(vcall(foo),.,bar,[],bodystmt([void()]))]", tree) thru_parse_error = false - tree = parse('def foo.?bar; end', :on_parse_error) {thru_parse_error = true} + tree = parse('def foo&.bar; end', :on_parse_error) {thru_parse_error = true} assert_equal(true, thru_parse_error) end @@ -796,9 +796,9 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal "[opassign(field(ref(self),.,foo),+=,1)]", tree thru_opassign = false - tree = parse("self.?foo += 1", :on_opassign) {thru_opassign = true} + tree = parse("self&.foo += 1", :on_opassign) {thru_opassign = true} assert_equal true, thru_opassign - assert_equal "[opassign(field(ref(self),.?,foo),+=,1)]", tree + assert_equal "[opassign(field(ref(self),&.,foo),+=,1)]", tree end def test_opassign_error -- cgit v1.2.3