From 618bc24bde4a54b4446a10ab84faae8e35823016 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Wed, 19 Apr 2017 22:38:12 +0200 Subject: [PATCH] Improve the test to be hash independent. --- tests/test-mdict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-mdict.c b/tests/test-mdict.c index ed18e9be..ca9ac6dd 100644 --- a/tests/test-mdict.c +++ b/tests/test-mdict.c @@ -88,7 +88,7 @@ static void check_io(void) dict_str_set_at (dict, STRING_CTE("AUTHOR"), STRING_CTE("PP")); dict_str_get_str(str, dict, false); //NOTE: order is dependent on the hash system. - assert (string_cmp_str (str, "{\"LICENCE\":\"BSD3\",\"AUTHOR\":\"PP\"}") == 0); + assert (string_cmp_str (str, "{\"LICENCE\":\"BSD3\",\"AUTHOR\":\"PP\"}") == 0 || string_cmp_str (str, "{\"AUTHOR\":\"PP\",\"LICENCE\":\"BSD3\"}") == 0); FILE *f = fopen ("a.dat", "wt"); if (!f) abort(); dict_str_out_str(f, dict);