From 1cd744601397fffb080a7fdbd041b69d14386f4b Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sat, 14 Apr 2018 08:27:26 +0200 Subject: [PATCH] Add more instantiation of the containter --- tests/test-mdict.c | 6 ++++-- tests/test-mprioqueue.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test-mdict.c b/tests/test-mdict.c index 8878045f..114741aa 100644 --- a/tests/test-mdict.c +++ b/tests/test-mdict.c @@ -20,12 +20,12 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include -#include #include +#include #include "m-dict.h" #include "m-array.h" #include "m-string.h" +#include "mympz.h" static inline bool oor_equal_p(int k, unsigned char n) { @@ -44,6 +44,8 @@ END_COVERAGE DICT_STOREHASH_DEF2(dict_str2, string_t, STRING_OPLIST, string_t, STRING_OPLIST) DICT_SET_DEF2(dict_setstr, string_t, STRING_OPLIST) +DICT_DEF2(dict_int, int, M_DEFAULT_OPLIST, int, M_DEFAULT_OPLIST) +DICT_DEF2(dict_mpz, string_t, STRING_OPLIST, my_mpz_t, MY_MPZ_OPLIST) /* Helper structure */ ARRAY_DEF(array_string, string_t, STRING_OPLIST) diff --git a/tests/test-mprioqueue.c b/tests/test-mprioqueue.c index 7bcaea61..c81c761a 100644 --- a/tests/test-mprioqueue.c +++ b/tests/test-mprioqueue.c @@ -22,12 +22,14 @@ */ #include #include +#include "mympz.h" #include "m-prioqueue.h" #include "coverage.h" START_COVERAGE PRIOQUEUE_DEF(int_pqueue, int) END_COVERAGE +PRIOQUEUE_DEF(mpz_pqueue, my_mpz_t, MY_MPZ_OPLIST) static void test1(void) {