From 480a791f4cdbcb3f54eca711625fb485315b9731 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 6 Feb 2021 23:41:04 +0100 Subject: [PATCH] Update tests --- tests/test-mcore.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-mcore.c b/tests/test-mcore.c index 64385633..a82d2c7a 100644 --- a/tests/test-mcore.c +++ b/tests/test-mcore.c @@ -307,6 +307,7 @@ static void test_list(void) assert(M_MID_ARGS(2, 1, 0, 0, 1, 0)); const int tab[] = { M_REPLICATE_C(5, 1) }; + assert(sizeof tab == 5 * sizeof (int) ); for(int i = 0; i < 5; i++) assert(tab[i] == 1); const char str[] = M_REPLICATE(10, "N"); assert(strcmp(str, "NNNNNNNNNN") == 0); @@ -317,6 +318,7 @@ static void test_list(void) assert( M_FILTER(M_EQUAL, 17, 1, 42, 17, 89) ); assert( M_FILTER_C(M_EQUAL, 17, 1, 42, 17, 89) ); const int tab2[] = { M_FILTER_C(M_NOTEQUAL, 8, 1, 3, 4, 8, 9, 8, 10) }; + assert(sizeof tab2 == 5 * sizeof (int) ); const int tabref[] = { 1, 3, 4, 9, 10 }; assert (sizeof tab2 == sizeof tabref); for(int i = 0; i < 5 ; i++) assert(tab2[i] == tabref[i]);