Skip to content
Snippets Groups Projects
Commit b64e5ea8 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Minor fixes, sorting test was in todo section. Refs #116

parent 124839b3
Branches
Tags
No related merge requests found
......@@ -160,10 +160,11 @@ static int test_node_sorting()
int last = ((dnslib_rrset_t *)array[0])->type;
for (int i = 1; i < len && !errors; i++) {
if (last <= ((dnslib_rrset_t *)array[i])->type) {
if (last > ((dnslib_rrset_t *)array[i])->type) {
diag("RRset sorting error.");
errors++;
}
last = ((dnslib_rrset_t *)array[i])->type;
}
return (errors == 0);
}
......@@ -192,7 +193,7 @@ static int dnslib_node_tests_run(int argc, char *argv[])
ret = test_node_create();
ok(ret, "node: create");
skip(!ret, 3)
skip(!ret, 4)
ok(test_node_add_rrset(), "node: add");
......@@ -200,14 +201,14 @@ static int dnslib_node_tests_run(int argc, char *argv[])
ok(test_node_get_parent(), "node: get parent");
ok(test_node_sorting(), "node: sort");
endskip;
todo();
ok(test_node_delete(), "node: delete");
ok(test_node_sorting(), "node: sort");
endtodo;
return 0;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment