Skip to content
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

Missing seq combinators #313

Open
jmid opened this issue Jan 15, 2025 · 0 comments
Open

Missing seq combinators #313

jmid opened this issue Jan 15, 2025 · 0 comments
Labels
good-first-issue Issue suitable for a new contributor

Comments

@jmid
Copy link
Collaborator

jmid commented Jan 15, 2025

Both QCheck2 and QCheck are missing seq combinators.
Seq was added in OCaml 4.08 (or current lower bound), so that shouldn't be an issue.

For Gen (and arbitrary) we can piggy-back on list generation (and shrinking).

For Print we should decide on a format for printing them.
In qcheck-lin we print them as <2; 3; 22; 1; 3; 3; 3; 4; 4; 5; 8; 9; 2; 3; 3> (not a valid OCaml literal)
Nested Cons (...) will probably be too hard to read as console output for anything longer than ~3 elements...

@jmid jmid added the good-first-issue Issue suitable for a new contributor label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Issue suitable for a new contributor
Projects
None yet
Development

No branches or pull requests

1 participant