-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shuffling of lists and arrays #707
Conversation
I know the new unit tests I added are not being run. |
It's probably because qtest is not given the proper |
(I haven't looked at the qtest issue yet.) Calling |
BatArray.shuffle comes from BatEnum indeed. |
I think the behavior I would expect as a user is:
Your call to Have you considered taking an optional parameter instead of an |
Is it fine to start using Random without having ever called Random.self_init() ? |
imho it's almost never fine to use |
I learned about Random.State today. Better late than never ... |
Regarding the two "options", I think I'd personnally rather have an optional parameter rather than an option. It isn't really heavier to write Why not both though ? |
I went for the optional parameter since I also thought about it in the past. |
I have updated the code in my branch. |
There are still several problems: the tests I added are not run (you can check by falsifying anyone of them). |
I don't have time to look at it this week, I hope to look at the test issue this week-end or next week. |
I fixed the unit-tests issue in the now-merged #715 (thanks for catching the issue!). Could you now check that your unit-tests are as expected? I looked at your "need an extra If we decide to keep an internal file, it should have a more unique name than |
@gascher yes I don't want to introduce inter module dependencies. And yes I will probably go with your suggested name. |
superseded by #718 |
@gascher yes the tests were correctly repaired; that's cool. Thanks. |
No description provided.