Improve test coverage
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 May 2023 17:58:00 +0000 (13:58 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 1 May 2023 17:58:42 +0000 (13:58 -0400)
Check that our two rounded rect intersection functions agree.

testsuite/gsk/rounded-rect.c

index 3112ec26e3d97b204eb121f5f14e39d8629c3f5b..6ea7e7475b3d358ba3ad42c9562890c860caf504 100644 (file)
@@ -229,6 +229,8 @@ test_intersect_with_rect (void)
             }
           g_assert_true (gsk_rounded_rect_equal (&out, &test[i].expected));
         }
+
+      g_assert_true ((res != GSK_INTERSECTION_EMPTY) == gsk_rounded_rect_intersects_rect (&test[i].rounded, &test[i].rect));
     }
 }