Add build date into library: Fix Windows build

This commit is contained in:
Shahram Najm 2021-12-14 20:02:02 +00:00
parent 1721cc7351
commit f1a68b38e3
1 changed files with 2 additions and 3 deletions

View File

@ -51,9 +51,8 @@ static void test_get_build_date()
{
const char* bdate = codes_get_build_date();
Assert(bdate != NULL);
/* Should be of the format YYYY.MM.DD or not implemented */
Assert( STR_EQUAL(bdate, "date not implemented") ||
isdigit(bdate[0]) );
/* Should be of the format YYYY.MM.DD or empty (not implemented) */
Assert( strlen(bdate) == 0 || isdigit(bdate[0]) );
printf("Testing: test_get_build_date... %s\n", bdate);
}