Skip to content
Snippets Groups Projects
Commit 5ebbef78 authored by Timothy A. Smith's avatar Timothy A. Smith
Browse files

change array comparison to use pytest approx

parent bbceb1a1
No related branches found
No related tags found
1 merge request!8Test refactoring
import numpy.linalg as la from pytest import approx
def arrays(a, b): def arrays(a, b):
assert la.norm(a - b, 2)/la.norm(b) < 1e-5 assert a == approx(b)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment