diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-22 08:05:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-22 08:05:15 +0000 |
commit | 87a371197e5d70dd819216b8693bf9cbe87d80c0 (patch) | |
tree | d804daa4d4ebd1732fee7858ee9bfd56714383dc /test/ripper | |
parent | 977267c2e0218d6b182807ddf9b7c1d929c40bed (diff) | |
download | ruby-87a371197e5d70dd819216b8693bf9cbe87d80c0.tar.gz |
* 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
Diffstat (limited to 'test/ripper')
-rw-r--r-- | test/ripper/test_parser_events.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |