Tidy up formatting
This commit is contained in:
parent
e13a39422d
commit
fed7a3e59c
|
@ -249,7 +249,7 @@ int do_verify(void)
|
||||||
s1, s2, num, (num == dl->num) ? "" : "un");
|
s1, s2, num, (num == dl->num) ? "" : "un");
|
||||||
if(num != dl->num) return 1;
|
if(num != dl->num) return 1;
|
||||||
|
|
||||||
fputs("Scanning days.\n", stdout);
|
printf("Scanning %d days.\n", d2.day - d1.day);
|
||||||
for(num = 0; d1.day < d2.day; ++d1.day) {
|
for(num = 0; d1.day < d2.day; ++d1.day) {
|
||||||
if(iso8601_seconds_leap(&d1) == 86400) continue;
|
if(iso8601_seconds_leap(&d1) == 86400) continue;
|
||||||
iso8601_print(s1, sizeof(s1), &d1, &print_details);
|
iso8601_print(s1, sizeof(s1), &d1, &print_details);
|
||||||
|
@ -257,12 +257,12 @@ int do_verify(void)
|
||||||
fputs(s1, stdout);
|
fputs(s1, stdout);
|
||||||
|
|
||||||
if(num == dl->num) {
|
if(num == dl->num) {
|
||||||
fputs("(unexpected -- past end of table)\n", stdout);
|
fputs(" (unexpected -- past end of table)\n", stdout);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(dl->days[num] != d1.day) {
|
if(dl->days[num] != d1.day) {
|
||||||
fputs("(unexpected -- table's next leap at ", stdout);
|
fputs(" (unexpected -- table's next leap at ", stdout);
|
||||||
d1.day = dl->days[num];
|
d1.day = dl->days[num];
|
||||||
iso8601_print(s1, sizeof(s1), &d1, &print_details);
|
iso8601_print(s1, sizeof(s1), &d1, &print_details);
|
||||||
fputs(s1, stdout);
|
fputs(s1, stdout);
|
||||||
|
@ -270,7 +270,7 @@ int do_verify(void)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fputs("(expected).\n", stdout);
|
fputs(" (expected).\n", stdout);
|
||||||
++num;
|
++num;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue