diff options
author | Kevin Newton <kddnewton@gmail.com> | 2021-07-14 15:16:56 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:37 -0400 |
commit | be648e0940054a693105b1a3da6c2675ee724499 (patch) | |
tree | 5e425492839b2d925f1c1d784c53916d522e97aa /bootstraptest | |
parent | cb5571eece818b33d2f6a33b892e7cda31231e69 (diff) |
Implement splatarray
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_yjit.rb | 9 |
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 +} |