Skip to content

Fix Array shuffle and sample arity checking#6500

Merged
headius merged 3 commits intojruby:masterfrom
headius:array_shuffle_kwargs_arity
Dec 16, 2020
Merged

Fix Array shuffle and sample arity checking#6500
headius merged 3 commits intojruby:masterfrom
headius:array_shuffle_kwargs_arity

Conversation

@headius
Copy link
Member

@headius headius commented Dec 16, 2020

Fixing shuffle at first for #6499 but sample appears to have the same problem.

@headius headius added this to the JRuby 9.2.15.0 milestone Dec 16, 2020
@headius
Copy link
Member Author

headius commented Dec 16, 2020

This fixes the missing arity error for shuffle and sample but I did not add any specs for these error conditions.

Also fix splitting of shuffle
@headius headius force-pushed the array_shuffle_kwargs_arity branch from 59ee835 to 69334b7 Compare December 16, 2020 21:05
@headius headius merged commit 9605d68 into jruby:master Dec 16, 2020
@headius
Copy link
Member Author

headius commented Dec 16, 2020

Well crap, that was supposed to go to 9.2. I will cherry-pick I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Array shuffle method should fail if prng is passed without being a named argument

1 participant