From: Karthik Ram Date: Fri, 13 Sep 2013 08:53:58 +0000 (+0100) Subject: Misssed one code block X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1dfc96e4b06a7a85f91c16e9d62068e852dc16cb;p=swc-testing-nose.git Misssed one code block --- diff --git a/testing/README.md b/testing/README.md index befbe0b..d82c4ad 100644 --- a/testing/README.md +++ b/testing/README.md @@ -270,7 +270,11 @@ assert_almost_equal(expected, actual, 16) `nose.testing` uses absolute tolerance: abs(x, y) <= delta -[Numpy](http://www.numpy.org/)'s `numpy.testing` uses relative tolerance: abs(x, y) <= delta * (max(abs(x), abs(y)). +[Numpy](http://www.numpy.org/)'s `numpy.testing` uses relative tolerance: + +```python +abs(x, y) <= delta * (max(abs(x), abs(y)) +``` `assert_allclose(actual_array, expected_array, relative_tolerance, absolute_tolerance)`