File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def test_gen_debug_img():
4343 expected = Image .open ("./tests/dat/gen_debug_img.png" )
4444 img = drawing .gen_debug_img (width , height , text , thickness )
4545
46- np .testing .assert_equal (np .array (expected ), np .array (img ))
46+ np .testing .assert_array_almost_equal (np .array (expected ), np .array (img ))
4747
4848def test_gen_overlay ():
4949 img = drawing .gen_empty (256 , 256 )
@@ -55,7 +55,7 @@ def test_gen_debug_overlay():
5555 img = drawing .gen_empty (256 , 256 )
5656 expected = Path ("./tests/dat/gen_debug_overlay.txt" ).read_bytes ()
5757 actual = drawing .gen_debug_overlay (img , "hello, world!" )
58- np .testing .assert_array_almost_equal (np .array (expected ), np .array (img ))
58+ np .testing .assert_array_almost_equal (np .array (expected ), np .array (actual ))
5959
6060def test_generate_x_tile ():
6161 expected = Path ("./tests/dat/gen_error.txt" ).read_bytes ()
You can’t perform that action at this time.
0 commit comments