Improve coverage of the test suite

This commit is contained in:
Patrick Pelissier committed 2023-04-05 22:22:49 +02:00
1 parent a6993ab758
commit 352d7cf725
3 files changed
+25 -1

No files matched your search

+8
View File
@@ -277,6 +277,14 @@ static void test_mpz(void)
assert(b);
assert(strcmp(sp, "") == 0);
assert(array_mpz_equal_p(array1, array2));
b = array_mpz_parse_str(array2, "[", &sp);
assert(!b);
b = array_mpz_parse_str(array2, "[17,", &sp);
assert(!b);
b = array_mpz_parse_str(array2, "[17,18", &sp);
assert(!b);
// NOTE: Not the same order than list...
}