ekmett / ad

Automatic Differentiation
http://hackage.haskell.org/package/ad
BSD 3-Clause "New" or "Revised" License
368 stars 73 forks source link

Use Relative Error for Equality Comparison in Tests #114

Closed julmb closed 3 months ago

julmb commented 3 months ago

In order to make the tests more robust, we use relative error for equality comparison instead of absolute error or exact comparison. This should fix #113, but I do not have a x86_64-darwin setup to test this.

I also did some cleanup first, I can split that part off into a separate PR if necessary.

RyanGlScott commented 3 months ago

Thanks, @julmb!

@sternenseemann, would you be able to test this patch on x86_64-darwin to confirm that it passes there?