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

+16
View File
@@ -174,6 +174,22 @@ static void check_io(void)
string_set_str (str, " { ] ");
b = dict_str_parse_str(dict2, string_get_cstr(str), &sp);
assert (!b);
string_set_str (str, " { \"LICENCE\" : \"BSD3\" ");
b = dict_str_parse_str(dict2, string_get_cstr(str), &sp);
assert (!b);
string_set_str (str, " { \"LICENCE\" :");
b = dict_str_parse_str(dict2, string_get_cstr(str), &sp);
assert (!b);
string_set_str (str, " { \"LICENCE\"");
b = dict_str_parse_str(dict2, string_get_cstr(str), &sp);
assert (!b);
string_set_str (str, " { ");
b = dict_str_parse_str(dict2, string_get_cstr(str), &sp);
assert (!b);
}
}