From 1dfc96e4b06a7a85f91c16e9d62068e852dc16cb Mon Sep 17 00:00:00 2001 From: Karthik Ram Date: Fri, 13 Sep 2013 09:53:58 +0100 Subject: [PATCH] Misssed one code block --- testing/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)` -- 2.26.2