summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2021-07-14 15:16:56 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:37 -0400
commitbe648e0940054a693105b1a3da6c2675ee724499 (patch)
tree5e425492839b2d925f1c1d784c53916d522e97aa /bootstraptest
parentcb5571eece818b33d2f6a33b892e7cda31231e69 (diff)
Implement splatarray
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_yjit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index 7fe637a86b..f55d63672f 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -1386,3 +1386,12 @@ assert_equal '[nil, nil, nil, 1]', %q{
is_inf(1.0/0.0)
]
}
+
+assert_equal '[1, 2, 3, 4, 5]', %q{
+ def splatarray
+ [*(1..5)]
+ end
+
+ splatarray
+ splatarray
+}