Skip to content

fix: Allow the Util.list to handle lengths of zero #614

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

lud-wj
Copy link

@lud-wj lud-wj commented Apr 10, 2025

Allow the list util to receive a length of zero, so we can do this:

Faker.Util.list(Faker.random_between(0, 5), fn _ -> ... end)

@lud-wj lud-wj force-pushed the fix/list-zero-len branch from 7302171 to a26100a Compare April 10, 2025 07:38
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.

1 participant