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):
delimiter=",",
dtype=int,
)
self.assertEqual(
flip_image(image_input),
image_answer,
self.assertLess(
np.linalg.norm(flip_image(image_input) - image_answer),
1e-6,
"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