From a3fad5966a84b3e17aa72859120b41667f857400 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Mon, 28 May 2018 23:46:10 +0200 Subject: [PATCH] Update test to reflect the new specifications. --- tests/test-mlist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-mlist.c b/tests/test-mlist.c index f3ae7fbe..0d5beb9b 100644 --- a/tests/test-mlist.c +++ b/tests/test-mlist.c @@ -202,10 +202,10 @@ static void test_uint(void) } assert (list_uint_empty_p(v)); assert (list_uint_size (v2) == 10); - s = 0; + s = 9; for M_EACH(item, v2, LIST_UINT_OPLIST) { assert (*item == s); - s ++; + s --; } list_uint_clear(v); @@ -579,10 +579,10 @@ static void test_dual_it1(void) } assert (list2_double_empty_p(list)); assert (list2_double_size (list2) == 10); - double s = 0.0; + double s = 9.0; for M_EACH(item, list2, LIST2_DOUBLE_OPLIST) { assert (*item == s); - s += 1.0; + s -= 1.0; } list2_double_clear(list2);