//boolean int IsEqualDateIso(const struct isodate expected, const struct isodate actual) { //&& if (expected.year == actual.year && expected.week == actual.week && expected.weekday == actual.weekday) { return TRUE; } else { printf("expected: %s but was %s", DateFromIsoToString(expected) ,DateFromIsoToString(actual)); return FALSE; } }
int/*BOOL*/ IsEqualDateIso( const struct isodate *expected, const struct isodate *actual) { if (expected->year == actual->year && expected->week == actual->week && expected->weekday == actual->weekday) { return TRUE; } else { printf("expected: %s but was %s", DateFromIsoToString(expected), DateFromIsoToString(actual)); return FALSE; } }