diff options
author | Kevin Newton <kddnewton@gmail.com> | 2021-09-28 15:51:33 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:42 -0400 |
commit | 2c0891be204f270028e533bd1196a034a599d8f8 (patch) | |
tree | c1e37648ed6b072b3c3063d792bba5ba81557b0d /bootstraptest | |
parent | 885bb972bfd80cb1c6ca4e5f521e823a1ae14c4a (diff) |
Get kwargs reordering working
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_yjit.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 91c39323e0..cf4a65fea2 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -2073,3 +2073,38 @@ assert_equal '["sub", "sub"]', %q{ [foo(sub), foo(sub)] } + +assert_equal '[[1, 2, 3, 4]]', %q{ + def four(a:, b:, c:, d:) + [a, b, c, d] + end + + 5.times.flat_map do + [ + four(a: 1, b: 2, c: 3, d: 4), + four(a: 1, b: 2, d: 4, c: 3), + four(a: 1, c: 3, b: 2, d: 4), + four(a: 1, c: 3, d: 4, b: 2), + four(a: 1, d: 4, b: 2, c: 3), + four(a: 1, d: 4, c: 3, b: 2), + four(b: 2, a: 1, c: 3, d: 4), + four(b: 2, a: 1, d: 4, c: 3), + four(b: 2, c: 3, a: 1, d: 4), + four(b: 2, c: 3, d: 4, a: 1), + four(b: 2, d: 4, a: 1, c: 3), + four(b: 2, d: 4, c: 3, a: 1), + four(c: 3, a: 1, b: 2, d: 4), + four(c: 3, a: 1, d: 4, b: 2), + four(c: 3, b: 2, a: 1, d: 4), + four(c: 3, b: 2, d: 4, a: 1), + four(c: 3, d: 4, a: 1, b: 2), + four(c: 3, d: 4, b: 2, a: 1), + four(d: 4, a: 1, b: 2, c: 3), + four(d: 4, a: 1, c: 3, b: 2), + four(d: 4, b: 2, a: 1, c: 3), + four(d: 4, b: 2, c: 3, a: 1), + four(d: 4, c: 3, a: 1, b: 2), + four(d: 4, c: 3, b: 2, a: 1) + ] + end.uniq +} |