summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-11-13 11:32:39 -0800
committerJemma Issroff <jemmaissroff@gmail.com>2023-11-27 16:02:38 -0500
commit1acea5010023deb0b4747e6c7309c4d69bdaf47d (patch)
tree20513e17c5d80937378171f298c9e661fc95f1a1 /test/ruby
parente4dd8f6c9c49526f92b5b70c46a067e97e64616e (diff)
[PRISM] Small fixes to parameters ordering and methods
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_compile_prism.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb
index 78c62c3b67..c1a32b84fd 100644
--- a/test/ruby/test_compile_prism.rb
+++ b/test/ruby/test_compile_prism.rb
@@ -787,6 +787,15 @@ module Prism
)
end
+ def test_method_parameters
+ assert_prism_eval(<<-CODE)
+ def self.prism_test_method_parameters(a, b=1, *c, d:, e: 2, **f, &g)
+ end
+
+ method(:prism_test_method_parameters).parameters
+ CODE
+ end
+
def test_LambdaNode
assert_prism_eval("-> { to_s }.call")
end