diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-05 23:34:14 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-05 23:34:14 +0000 |
commit | 5abf308aaa992966ee2ae77ba6c08db812298231 (patch) | |
tree | 650d1af479223bed916e8d6173b1bcdae486b939 /test | |
parent | f24efa287fa5848e9f9c7f85f3716b3ed5ea6149 (diff) |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |