Commit 0e5089b8 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

use assertLess

parent 45cd6f4d
Pipeline #1470 passed with stage
in 0 seconds
...@@ -36,9 +36,9 @@ class FlipImageTestCase(unittest.TestCase): ...@@ -36,9 +36,9 @@ class FlipImageTestCase(unittest.TestCase):
delimiter=",", delimiter=",",
dtype=int, dtype=int,
) )
self.assertEqual( self.assertLess(
flip_image(image_input), np.linalg.norm(flip_image(image_input) - image_answer),
image_answer, 1e-6,
"Test flip image on server failed", "Test flip image on server failed",
) )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment