Skip to content

Conversation

ej-castillo
Copy link
Contributor

According the documentation, "Exhaustive.azstring(1..2) ... [returns] a, b, c, ...., yz, zz". The yz seems to imply that it generates all possible permutations; however, this doesn't seem to be the case. For example for Exhaustive.azstring(2..2) should produce aa, ab, ac, ... , zx, zy, zz but instead produces aa, bb, cc, ... , xx, yy, zz. There is a mismatch between the code and the documentation.

My changes updates the code to match the written behavior. If the current behavior is intentional, I can change this pull request to update the documentation instead (and update the test to match the current behavior)

@ej-castillo ej-castillo requested a review from a team as a code owner April 21, 2025 13:15
@sksamuel
Copy link
Member

Great thanks!

@sksamuel sksamuel added this pull request to the merge queue Apr 21, 2025
Merged via the queue into kotest:master with commit 824123d Apr 21, 2025
7 checks passed
habara-k pushed a commit to habara-k/kotest that referenced this pull request Apr 23, 2025
According the
[documentation](https://kotest.io/docs/proptest/property-test-generators-list.html),
"`Exhaustive.azstring(1..2)` ... [returns] `a, b, c, ...., yz, zz`". The
`yz` seems to imply that it generates all possible permutations;
however, this doesn't seem to be the case. For example for
`Exhaustive.azstring(2..2)` should produce `aa, ab, ac, ... , zx, zy,
zz` but instead produces `aa, bb, cc, ... , xx, yy, zz`. There is a
mismatch between the code and the documentation.

My changes updates the code to match the written behavior. If the
current behavior is intentional, I can change this pull request to
update the documentation instead (and update the test to match the
current behavior)
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.

2 participants