diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testrandom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testrandom.c b/tests/testrandom.c index a7716b1b..9f132b92 100644 --- a/tests/testrandom.c +++ b/tests/testrandom.c @@ -140,7 +140,8 @@ test_wrap_char (gconstpointer data) for (i = 1; i < G_N_ELEMENTS (sizes); i++) { - if (sizes[i].set_width < min.width) + if (sizes[i-1].set_width < min.width || + sizes[i].set_width < min.width) continue; g_assert_cmpint (sizes[i-1].set_width, <=, sizes[i].set_width); |