1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_syntax.rb: Add a test case for not()

* test/ruby/test_syntax.rb (TestSyntax#test_keyword_not_parens):
  Currently `not()` is tested by only TestRipper::ParserEvents#test_unary,
  so I think it's better to test this syntax directly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yui-knk 2017-12-05 23:34:14 +00:00
parent f24efa287f
commit 5abf308aaa

View file

@ -1056,6 +1056,10 @@ eom
assert_in_out_err(%w[-e redo], "", [], /^-e:1: /)
end
def test_keyword_not_parens
assert_valid_syntax("not()")
end
def test_rescue_do_end_raised
result = []
assert_raise(RuntimeError) do