From 570473e465bf656005aabf6b66b775e756605e86 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 30 May 2020 11:33:37 +0200 Subject: [PATCH] Improve test suite. --- tests/test-mtuple.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test-mtuple.c b/tests/test-mtuple.c index fc1c6d52..649ac3b2 100644 --- a/tests/test-mtuple.c +++ b/tests/test-mtuple.c @@ -73,8 +73,13 @@ TUPLE_DEF2(rtuple, TUPLE_DEF2(rtuple2, (name, string_t), (value, int)) #define M_OPL_rtuple2_t() TUPLE_OPLIST(rtuple2, STRING_OPLIST, M_DEFAULT_VALUE) +/* Chain of tuple on top of tuple to check if it works */ TUPLE_DEF2(rtuple3, (name, string_t), (ituple2, rtuple2_t), (ituple, rtuple_t) ) +#define M_OPL_rtuple3_t() TUPLE_OPLIST(rtuple3, STRING_OPLIST, M_OPL_rtuple2_t(), M_OPL_rtuple_t()) +/* Chain of tuple on top of tuple to check if it works */ +TUPLE_DEF2(rtuple4, (value, rtuple3_t) ) +#define M_OPL_rtuple4_t() TUPLE_OPLIST(rtuple4, M_OPL_rtuple4_t() ) static void check_swap(void) {