logicalparadox/chai — pull request #36 by apatil (2012-03-09 17:13:57+00:00)
Title: Almost equal assertions

Hello,

This pull request adds 'almost equal' assertions like NumPy's. See http://docs.scipy.org/doc/numpy/reference/generated/numpy.testing.assert_almost_equal.html . These are useful for testing special functions (for example, http://en.wikipedia.org/wiki/Gamma_function) and other numerical functions in which fine implementation details such as order of operations can slightly affect the result.

Anand