Skip to content

Fix wrong assertion when equal#61

Merged
jogboms merged 1 commit into
jogboms:masterfrom
FMorschel:master
Aug 2, 2022
Merged

Fix wrong assertion when equal#61
jogboms merged 1 commit into
jogboms:masterfrom
FMorschel:master

Conversation

@FMorschel

@FMorschel FMorschel commented Aug 1, 2022

Copy link
Copy Markdown
Collaborator

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

codecov Bot commented Aug 1, 2022

Copy link
Copy Markdown

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

jogboms commented Aug 3, 2022

Copy link
Copy Markdown
Owner

@FMorschel this doesn't apply to Duration right?

@FMorschel

Copy link
Copy Markdown
Collaborator Author

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

@jogboms

jogboms commented Aug 3, 2022

Copy link
Copy Markdown
Owner

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.

2 participants