X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/6d55934c65607a0db77403b6b364af25e7ae1a70..dcf99dab6ac9d82bc6581c4ea0ea85bc4a98736e:/test-strptime.c diff --git a/test-strptime.c b/test-strptime.c index bedc7758..d8799e94 100644 --- a/test-strptime.c +++ b/test-strptime.c @@ -9,6 +9,6 @@ main(void) { struct tm tm; const char input[] = "2014-01-04"; - return( ! (input+10 == strptime(input, "%Y-%m-%d", &tm) && - 114 == tm.tm_year && 0 == tm.tm_mon && 4 == tm.tm_mday)); + return ! (strptime(input, "%Y-%m-%d", &tm) == input + 10 && + tm.tm_year == 114 && tm.tm_mon == 0 && tm.tm_mday == 4); }