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

✨ Add AssertDate introduce date assertions #156

Open
stijnmoreels opened this issue Jul 8, 2024 · 0 comments
Open

✨ Add AssertDate introduce date assertions #156

stijnmoreels opened this issue Jul 8, 2024 · 0 comments
Labels
area:assert All issues related to comparing values in tests nice-to-have All issues related to 'nice to have' features, implicitly with a low-prio.
Milestone

Comments

@stijnmoreels
Copy link
Member

Is your feature request related to a problem? Please describe.
When dealing with dates in tests, it can become a hussle as even the smallest millisecond is technical a 'different' date, while in many business scenarios it might be considered the same.

Describe the solution you'd like
Create an AssertDate test assertion that lets you compare dates with a fault margin of the date measurement (year, month, day, hour...). Also consider the 'contains' or 'InrRange' assertion to verify if a certain date falls between two dates.

Additional context
https://github.com/stijnmoreels/System/blob/main/Date.fs

@stijnmoreels stijnmoreels added the area:assert All issues related to comparing values in tests label Jul 8, 2024
@stijnmoreels stijnmoreels added this to the v1.1 milestone Jul 8, 2024
@stijnmoreels stijnmoreels added the nice-to-have All issues related to 'nice to have' features, implicitly with a low-prio. label Jul 8, 2024
@github-project-automation github-project-automation bot moved this to To do in Roadmap Aug 29, 2024
@stijnmoreels stijnmoreels modified the milestones: v1.1, v1.2 Oct 16, 2024
@stijnmoreels stijnmoreels changed the title AssertDate: introduce date assertions AssertDate: introduce date assertions Oct 16, 2024
@stijnmoreels stijnmoreels modified the milestones: v1.2, v1.3 Nov 1, 2024
@stijnmoreels stijnmoreels changed the title AssertDate: introduce date assertions ✨ Add AssertDate introduce date assertions Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:assert All issues related to comparing values in tests nice-to-have All issues related to 'nice to have' features, implicitly with a low-prio.
Projects
Status: To do
Development

No branches or pull requests

1 participant