Commit 22201d08 by Wenzel Jakob Committed by GitHub

Merge pull request #268 from bennorth/stricter-test

Tighten check() test in eigen.py
parents f57133aa 150a0fa7
...@@ -22,7 +22,9 @@ ref = np.array( ...@@ -22,7 +22,9 @@ ref = np.array(
def check(mat): def check(mat):
return 'OK' if np.sum(mat - ref) == 0 else 'NOT OK' return 'OK' if np.sum(abs(mat - ref)) == 0 else 'NOT OK'
print("should_give_NOT_OK = %s" % check(ref[:, ::-1]))
print("fixed_r = %s" % check(fixed_r())) print("fixed_r = %s" % check(fixed_r()))
print("fixed_c = %s" % check(fixed_c())) print("fixed_c = %s" % check(fixed_c()))
......
should_give_NOT_OK = NOT OK
fixed_r = OK fixed_r = OK
fixed_c = OK fixed_c = OK
pt_r(fixed_r) = OK pt_r(fixed_r) = OK
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment