Skip to content

Commit

Permalink
Merge pull request #19 from PingjunChen/ajinkya-kulkarni-patch-4
Browse files Browse the repository at this point in the history
Updated assertions
  • Loading branch information
PingjunChen committed Apr 2, 2023
2 parents 34ced74 + 0357799 commit 15b3f41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/contour/test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

def test_contour_valid():
cnt_arr1 = np.array([(0, 2, 2, 0), (0, 0, 2, 2)])
if contour.contour_valid(cnt_arr1) != True:
raise AssertionError
assert contour.contour_valid(cnt_arr1), "Contour array 1 is not valid."

cnt_arr2 = np.array([(1, 3, 1, 3), (1, 3, 2, 2)])
if contour.contour_valid(cnt_arr2) != False:
raise AssertionError
assert not contour.contour_valid(cnt_arr2), "Contour array 2 should not be valid."

0 comments on commit 15b3f41

Please sign in to comment.