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:
parent
f24efa287f
commit
5abf308aaa
1 changed files with 4 additions and 0 deletions
|
@ -1056,6 +1056,10 @@ eom
|
||||||
assert_in_out_err(%w[-e redo], "", [], /^-e:1: /)
|
assert_in_out_err(%w[-e redo], "", [], /^-e:1: /)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_keyword_not_parens
|
||||||
|
assert_valid_syntax("not()")
|
||||||
|
end
|
||||||
|
|
||||||
def test_rescue_do_end_raised
|
def test_rescue_do_end_raised
|
||||||
result = []
|
result = []
|
||||||
assert_raise(RuntimeError) do
|
assert_raise(RuntimeError) do
|
||||||
|
|
Loading…
Reference in a new issue