mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 21:57:55 +00:00
Merge pull request #268 from bennorth/stricter-test
Tighten check() test in eigen.py
This commit is contained in:
commit
22201d08e4
@ -22,7 +22,9 @@ ref = np.array(
|
||||
|
||||
|
||||
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_c = %s" % check(fixed_c()))
|
||||
|
@ -1,3 +1,4 @@
|
||||
should_give_NOT_OK = NOT OK
|
||||
fixed_r = OK
|
||||
fixed_c = OK
|
||||
pt_r(fixed_r) = OK
|
||||
|
Loading…
Reference in New Issue
Block a user