Skip to content

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

Open
lud-wj wants to merge 1 commit into
elixirs:devfrom
lud-wj:fix/list-zero-len
Open

fix: Allow the Util.list to handle lengths of zero#614
lud-wj wants to merge 1 commit into
elixirs:devfrom
lud-wj:fix/list-zero-len

Conversation

@lud-wj

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

Copy link
Copy Markdown

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)

@artkay

artkay commented May 14, 2026

Copy link
Copy Markdown
Contributor

Hey @lud-wj, your work here shipped in fakerer v1.1.0 (a maintained fork) with full authorship preserved. Thanks for it - hoping the upstream maintainers will merge yours directly too at some point.

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