-
Notifications
You must be signed in to change notification settings - Fork 731
Add BeCloseTo() / NotBeCloseTo() to TimeOnlyAssertions
#2030
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
Conversation
BeCloseTo() to TimeOnlyAssertionsBeCloseTo() / NotBeCloseTo() to TimeOnlyAssertions
b2d887a to
713b5f9
Compare
Pull Request Test Coverage Report for Build 3542928324Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
BeCloseTo() / NotBeCloseTo() to TimeOnlyAssertionsBeCloseTo() / NotBeCloseTo() to TimeOnlyAssertions
jnyrup
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't figure out what kind of test branch coverage thinks we're missing 🤔
Tests/FluentAssertions.Specs/Primitives/TimeOnlyAssertionSpecs.cs
Outdated
Show resolved
Hide resolved
Tests/FluentAssertions.Specs/Primitives/TimeOnlyAssertionSpecs.cs
Outdated
Show resolved
Hide resolved
Tests/FluentAssertions.Specs/Primitives/TimeOnlyAssertionSpecs.cs
Outdated
Show resolved
Hide resolved
Me too 😅 |
Tests/FluentAssertions.Specs/Primitives/TimeOnlyAssertionSpecs.cs
Outdated
Show resolved
Hide resolved
|
I noticed that while This bring the question, is 23:59 is close to 00:01 ±2 minutes? |
Hmm.. good catch.. I would say yes.. 🤔 What does @dennisdoomen thinks about that? |
Yes, but this is exclusive the end time. so I could workaround by adding 1 tick to the maximum time.. so this should work.. But looks like a bad hack.. |
|
Adding 1 tick was also my idea. |
|
Ok.. this should be easy.. But this does not help to get rid of the min/max calculation. Changing the code signature to Edit: |
Given the behavior of |
What's the best way to generate random numbers: let coveralls calculate your coverage.. 😂 |
Co-authored-by: Jonas Nyrup <jnyrup@users.noreply.github.com>
IMPORTANT
Closes #2029