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

Fix wrong assertion when equal #61

Merged
merged 1 commit into from Aug 2, 2022
Merged

Fix wrong assertion when equal #61

merged 1 commit into from Aug 2, 2022

Conversation

FMorschel
Copy link
Collaborator

@FMorschel FMorschel commented Aug 1, 2022

Found a bug. When both min and max were equal, the assertion was throwing. Added a test to maintain that as well. The documentation above was correct, must have missed it when publishing the first time.

@codecov
Copy link

codecov bot commented Aug 1, 2022

Codecov Report

Merging #61 (f518e3f) into master (a5d7b7b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #61   +/-   ##
=======================================
  Coverage   99.80%   99.80%           
=======================================
  Files           2        2           
  Lines         516      525    +9     
=======================================
+ Hits          515      524    +9     
  Misses          1        1           
Impacted Files Coverage Δ
lib/src/extensions.dart 98.95% <100.00%> (ø)
test/time_test.dart 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us.

@jogboms jogboms merged commit fbee69f into jogboms:master Aug 2, 2022
@jogboms
Copy link
Owner

jogboms commented Aug 3, 2022

@FMorschel this doesn't apply to Duration right?

@FMorschel
Copy link
Collaborator Author

Missed it! Sorry! Forgot about the Duration.clamp, created #63 for that.

@jogboms
Copy link
Owner

jogboms commented Aug 3, 2022

Thanks for picking it up @FMorschel

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.

None yet

2 participants