Skip to content

Conversation

@AltGr
Copy link
Collaborator

@AltGr AltGr commented Nov 2, 2023

Closes ocaml-sf/learn-ocaml-corpus#39

The sampler was attempting to generate N distinct elements by restarting the
provided sampler an arbitrary number of times (100). It would fail if the domain
is to small: now it might still return duplicates in this case, which is better
than failing for our use-cases.

@AltGr
Copy link
Collaborator Author

AltGr commented Nov 2, 2023

Tests fail because of an incompatibility with asak 0.4 (was expecting 0.3), there should be an upper bound. This is unrelated to this PR.

The solution would be to merge #481 first ; adding the version constraint now would generate conflicts on the other PRs that actually work.

@erikmd
Copy link
Collaborator

erikmd commented Nov 2, 2023

Hi @AltGr,

Tests fail because of an incompatibility with asak 0.4 (was expecting 0.3), there should be an upper bound. This is unrelated to this PR.

Indeed, but the missing upper bound also prevents master to build (and to do any release), so I merged #570

Feel free to rebase this PR #568 on master now, and you'll be able to integrate it at the time you see fit.

Closes ocaml-sf/learn-ocaml-corpus#39

The sampler was attempting to generate N distinct elements by restarting the
provided sampler an arbitrary number of times (100). It would fail if the domain
is to small: now it might still return duplicates in this case, which is better
than failing for our use-cases.
@AltGr AltGr merged commit 0816f95 into ocaml-sf:master Nov 3, 2023
@erikmd erikmd added this to the learn-ocaml 1.0.0 milestone Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Heisenbug: mooc/projects/klotski's solution may fail the tests randomly

2 participants