summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Konchin <andry.konchin@gmail.com>2024-10-07 15:36:36 +0300
committergit <svn-admin@ruby-lang.org>2024-10-07 15:52:22 +0000
commit8d359644e7a71c4835b8f385c308571a7a8baf7f (patch)
treebc24471fcbb782abcb855cb6291e9d8baaadf91b /test
parentb8c8529dcfcd0c5bc76f4efdeab9b98100f2ead7 (diff)
[ruby/prism] Set contains_keywords flag for implicit gets($/, chomp: true) method call to handle -l CLI option
https://github.com/ruby/prism/commit/717e41c87d
Diffstat (limited to 'test')
-rw-r--r--test/prism/api/command_line_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/prism/api/command_line_test.rb b/test/prism/api/command_line_test.rb
index a8c4355152..e53d18703a 100644
--- a/test/prism/api/command_line_test.rb
+++ b/test/prism/api/command_line_test.rb
@@ -52,6 +52,9 @@ module Prism
assert_kind_of CallNode, predicate
assert_equal :gets, predicate.name
+ arguments = predicate.arguments
+ assert arguments.contains_keywords?
+
arguments = predicate.arguments.arguments
assert_equal 2, arguments.length
assert_equal :$/, arguments.first.name