зеркало из https://github.com/github/ruby.git
* 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:
Родитель
977267c2e0
Коммит
87a371197e
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче