Commit Graph

2 Commits

Author SHA1 Message Date
Mike Dilger
64130dfb2f tests for ApproxEq ULPs 2015-01-01 10:41:15 +13:00
Eduard Bopp
956c5cdecc Implement assertion macros for ApproxEq
These macros yield readable error messages as test assertions for ApproxEq
types. They can be invoked as:

    assert_approx_eq!(a, b);
    assert_approx_eq_eps!(a, b, eps);

Fixes #40.
2014-11-23 14:15:56 +01:00