From 87a371197e5d70dd819216b8693bf9cbe87d80c0 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 22 Apr 2010 08:05:15 +0000 Subject: * test/ripper/test_parser_events.rb (test_operator_ambiguous): new test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ripper/test_parser_events.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/ripper') diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index d28328da9d..3025025fa8 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -152,6 +152,12 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal true, thru_arg_ambiguous end + def test_operator_ambiguous + thru_operator_ambiguous = false + parse('a=1; a //', :on_operator_ambiguous) {thru_operator_ambiguous = true} + assert_equal true, thru_operator_ambiguous + end + def test_array # array literal assert_equal '[array([1,2,3])]', parse('[1,2,3]') end -- cgit v1.2.3