mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
977267c2e0
commit
87a371197e
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue