Skip to content

tests: Widen potential range for Generators.Date.random_date/0 - #3422

Merged
joshlarson merged 1 commit into
mainfrom
jdl/tests/widen-range-for-random-date
Aug 18, 2026
Merged

tests: Widen potential range for Generators.Date.random_date/0#3422
joshlarson merged 1 commit into
mainfrom
jdl/tests/widen-range-for-random-date

Conversation

@joshlarson

Copy link
Copy Markdown
Contributor

Scope

No ticket, but I noticed that Test.Support.Generators.Date.random_date/0 doesn't exactly do what it claims to do - it picks a random date in the year in which it's run, which is both different from what its @doc says ("this decade"), and more limited than is ideal. This updates random_date/0 to return a random date in a 20-year span instead.

@joshlarson
joshlarson requested a review from a team as a code owner August 17, 2026 16:46
@joshlarson
joshlarson requested a review from lvachon1 August 17, 2026 16:46
@joshlarson
joshlarson enabled auto-merge (squash) August 17, 2026 18:58
@joshlarson
joshlarson merged commit f1f3ada into main Aug 18, 2026
29 checks passed
@joshlarson
joshlarson deleted the jdl/tests/widen-range-for-random-date branch August 18, 2026 14:30
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