From 5abf308aaa992966ee2ae77ba6c08db812298231 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Tue, 5 Dec 2017 23:34:14 +0000 Subject: 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 --- test/ruby/test_syntax.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index bb03dad999..5582c70556 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -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 -- cgit v1.2.3