projects
/
swc-testing-nose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f040100
)
Misssed one code block
author
Karthik Ram
<karthik.ram@gmail.com>
Fri, 13 Sep 2013 08:53:58 +0000
(09:53 +0100)
committer
W. Trevor King
<wking@tremily.us>
Fri, 8 Nov 2013 03:52:35 +0000
(19:52 -0800)
testing/README.md
patch
|
blob
|
history
diff --git
a/testing/README.md
b/testing/README.md
index befbe0b64ef4ed49e761e2808100e7a7e2f335c9..d82c4ad8f62206db671b3a79437cb010c01171e2 100644
(file)
--- 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)`