ruby-changes:48917
From: yui-knk <ko1@a...>
Date: Wed, 6 Dec 2017 08:34:19 +0900 (JST)
Subject: [ruby-changes:48917] yui-knk:r61035 (trunk): test_syntax.rb: Add a test case for `not()`
yui-knk 2017-12-06 08:34:14 +0900 (Wed, 06 Dec 2017) New Revision: 61035 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61035 Log: 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. Modified files: trunk/test/ruby/test_syntax.rb Index: test/ruby/test_syntax.rb =================================================================== --- test/ruby/test_syntax.rb (revision 61034) +++ test/ruby/test_syntax.rb (revision 61035) @@ -1056,6 +1056,10 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_syntax.rb#L1056 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/