projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7200a93
)
Improve test coverage
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 1 May 2023 17:58:00 +0000
(13:58 -0400)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/testsuite/gsk/rounded-rect.c
b/testsuite/gsk/rounded-rect.c
index 3112ec26e3d97b204eb121f5f14e39d8629c3f5b..6ea7e7475b3d358ba3ad42c9562890c860caf504 100644
(file)
--- a/
testsuite/gsk/rounded-rect.c
+++ b/
testsuite/gsk/rounded-rect.c
@@
-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));
}
}