Skip to content

Commit

Permalink
add suite of ipv6 formatting tests, related to robertdavidgraham#796
Browse files Browse the repository at this point in the history
  • Loading branch information
mzpqnxow committed Sep 19, 2024
1 parent 764a9fb commit 331b562
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/massip-addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,10 @@ int ipv6address_selftest(void)
struct ipaddress_formatted fmt;

for (int i = 0; tests[i].name != NULL; i++) {
printf("Expected: %s\n", tests[i].name);
fmt = ipaddress_fmt(tests[i].ip_addr);
printf("Actual: %s\n", fmt.string);
if (strcmp(fmt.string, tests[i].name) != 0)
x++;
}
printf("ERRORS: %d\n", x);
return x;
}

Expand Down

0 comments on commit 331b562

Please sign in to comment.