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

Use FiniteDifferences in tests #80

Closed
wants to merge 2 commits into from
Closed

Conversation

devmotion
Copy link
Member

I extracted this PR from #79, I guess this makes it easier to review.

This PR replaces the custom and very basic forward finite differencing method in the tests with FiniteDifferences (e.g. also used by ChainRulesTestUtils). This allows us to lower the tolerances quite significantly which hopefully uncovers incorrect implementations more reliably.

@codecov-commenter
Copy link

codecov-commenter commented Dec 23, 2021

Codecov Report

Merging #80 (15948cf) into master (7b1c31e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #80   +/-   ##
=======================================
  Coverage   96.96%   96.96%           
=======================================
  Files           3        3           
  Lines         165      165           
=======================================
  Hits          160      160           
  Misses          5        5           

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 7b1c31e...15948cf. Read the comment docs.

@devmotion
Copy link
Member Author

Fixed by #55.

@devmotion devmotion closed this Jan 28, 2022
@devmotion devmotion deleted the dw/finitedifferences branch January 28, 2022 23:40
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