23 lines
334 B
C
23 lines
334 B
C
/*
|
|
* Copyright 2015 (c) Anna Schumaker.
|
|
*/
|
|
#include <core/date.h>
|
|
#include <tests/test.h>
|
|
|
|
void test_date()
|
|
{
|
|
struct date date = {
|
|
.d_year = 0,
|
|
.d_month = 0,
|
|
.d_day = 0,
|
|
};
|
|
|
|
test_equal(date.d_year, 0);
|
|
test_equal(date.d_month, 0);
|
|
test_equal(date.d_day, 0);
|
|
}
|
|
|
|
DECLARE_UNIT_TESTS(
|
|
UNIT_TEST("Date", test_date),
|
|
);
|