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

Update quickcheck #260

Merged
merged 3 commits into from
Aug 18, 2021
Merged

Update quickcheck #260

merged 3 commits into from
Aug 18, 2021

Conversation

iliekturtles
Copy link
Owner

Update to the latest version. Requires fixing floating point precision issues since the latest version of quickcheck provides a better range of values that weren't seen before. Will also require bumping the MSRV.

Change is required for future dependency updates.
The feature will be removed in a future release of uom. Functionality
previously exposed by the feature is now enabled by default.
@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2021

Codecov Report

Merging #260 (cad039c) into master (b1befd8) will increase coverage by 0.61%.
The diff coverage is 97.19%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #260      +/-   ##
==========================================
+ Coverage   96.78%   97.39%   +0.61%     
==========================================
  Files          58       58              
  Lines        2735     2846     +111     
==========================================
+ Hits         2647     2772     +125     
+ Misses         88       74      -14     
Impacted Files Coverage Δ
src/lib.rs 25.00% <ø> (ø)
src/si/time.rs 85.36% <81.48%> (+85.36%) ⬆️
src/si/ratio.rs 87.50% <100.00%> (-0.50%) ⬇️
src/system.rs 85.95% <100.00%> (+2.16%) ⬆️
src/tests/mod.rs 65.38% <100.00%> (-3.37%) ⬇️
src/tests/quantity.rs 100.00% <100.00%> (+1.36%) ⬆️
src/tests/system.rs 100.00% <100.00%> (+2.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1befd8...cad039c. Read the comment docs.

Change required the MSRV update as well as refactoring `from_base`,
`to_base`, and multiple tests. The `from_base` and `to_base` changes
provide better floating point precision while still maintaing zero-cost
guarantees. The test changes better handle floating point precision
issues as well as the wider range of values generated by `quickcheck`
1.0's `Arbitrary` implementation.
@iliekturtles iliekturtles merged commit 8adc731 into master Aug 18, 2021
@iliekturtles iliekturtles deleted the dev-change-base branch August 18, 2021 21:06
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