Test that check() catches wrong order of elements

Fails --- next commit will tighten test.
This commit is contained in:
Ben North 2016-07-05 21:46:09 +01:00
parent c2f6841c22
commit 676e29885b
2 changed files with 3 additions and 0 deletions

View File

@ -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())))

View File

@ -1,3 +1,4 @@
should_give_NOT_OK = NOT OK
fixed_r = OK
fixed_c = OK
pt_r(fixed_r) = OK