aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-09-27 11:08:54 -0400
committerGitHub <noreply@github.com>2023-09-27 11:08:54 -0400
commit2000cf918358460f9d7da86fb253318fcdbe8e57 (patch)
tree5e899b2c21ef79adf1afcf8263078e7d262afcd1 /test/yarp
parent5b36c11e21ce3ab227a0a3ec40d9bbb723524c4f (diff)
downloadruby-2000cf918358460f9d7da86fb253318fcdbe8e57.tar.gz
[YARP] Implemented BlockArgumentNode (#8499)
Diffstat (limited to 'test/yarp')
-rw-r--r--test/yarp/compiler_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/yarp/compiler_test.rb b/test/yarp/compiler_test.rb
index 82732197e3..9af208f625 100644
--- a/test/yarp/compiler_test.rb
+++ b/test/yarp/compiler_test.rb
@@ -290,6 +290,14 @@ module YARP
end
############################################################################
+ # Calls / arugments #
+ ############################################################################
+
+ def test_BlockArgumentNode
+ test_yarp_eval("1.then(&:to_s)")
+ end
+
+ ############################################################################
# Scopes/statements #
############################################################################