summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_syntax.rb4
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