mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-12 01:10:34 +00:00
Test that check() catches wrong order of elements
Fails --- next commit will tighten test.
This commit is contained in:
@@ -24,6 +24,8 @@ ref = np.array(
|
||||
def check(mat):
|
||||
return 'OK' if np.sum(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()))
|
||||
print("pt_r(fixed_r) = %s" % check(fixed_passthrough_r(fixed_r())))
|
||||
|
||||
Reference in New Issue
Block a user