int IsEqualIso(const struct isodate expected, const struct isodate actual) { //&& if (expected.year == actual.year && expected.week == actual.week && expected.weekday == actual.weekday && expected.hour == actual.hour && expected.minute == actual.minute && expected.second == actual.second) { return TRUE; } else { printf("expected: %s but was %s", CalendarFromIsoToString(expected) , CalendarFromIsoToString(actual)); return FALSE; } }
int IsEqualIso( const struct isodate *expected, const struct isodate *actual) { if (expected->year == actual->year && expected->week == actual->week && expected->weekday == actual->weekday && expected->hour == actual->hour && expected->minute == actual->minute && expected->second == actual->second) { return TRUE; } else { printf("expected: %s but was %s", CalendarFromIsoToString(expected), CalendarFromIsoToString(actual)); return FALSE; } }