Test that output argument is correct.

This commit is contained in:
Stefan van der Walt
2013-10-12 19:57:35 +02:00
parent ceb2e4c5d4
commit 4f74a007d9
+1
View File
@@ -62,6 +62,7 @@ def test_out_argument():
out_saved = out.copy()
func(img, strel, out=out)
testing.assert_(np.any(out != out_saved))
testing.assert_array_equal(out, func(img, strel))
if __name__ == '__main__':
testing.run_module_suite()