summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-14 22:59:47 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-15 00:15:18 -0500
commit6732d7caf899e5203e92e75cc69372de916445c2 (patch)
tree674ae2ce5504bd21a4acdb59c6c483b9e3e93d75
parentfc0d17260c9512b6111cbc11cc3e045a4ce3492d (diff)
downloadpango-6732d7caf899e5203e92e75cc69372de916445c2.tar.gz
Revert "testrandom: Disable assertions I can't make work"line-breaking-fixes2
This reverts commit 3bacb9c23b211ffe6674f9d0ce3e6dbecdb4808f.
-rw-r--r--tests/testrandom.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/testrandom.c b/tests/testrandom.c
index fb3daf4c..ea97dfb1 100644
--- a/tests/testrandom.c
+++ b/tests/testrandom.c
@@ -138,17 +138,12 @@ test_wrap_char (gconstpointer data)
g_qsort_with_data (sizes, G_N_ELEMENTS (sizes), sizeof (Size), compare_size, NULL);
- if (sizes[0].set_width >= min.width)
- {
- g_assert_cmpint (sizes[0].width, >=, min.width);
- g_assert_cmpint (sizes[0].height, <=, min.height);
- }
+ g_assert_cmpint (sizes[0].width, >=, min.width);
+ g_assert_cmpint (sizes[0].height, <=, min.height);
for (i = 1; i < G_N_ELEMENTS (sizes); i++)
{
g_assert_cmpint (sizes[i-1].set_width, <=, sizes[i].set_width);
- if (sizes[i-1].set_width < min.width || sizes[i].set_width < min.width)
- continue;
g_assert_cmpint (sizes[i-1].width, <=, sizes[i].width);
g_assert_cmpint (sizes[i-1].height, >=, sizes[i].height);
if (sizes[i-1].width == sizes[i].width &&