Lines Matching full:year
41 d->year,
56 /* Try to get all the leap year cases. */
87 TEST("January 1, Year 1 created and valid", g_date_valid(d));
91 TEST("January 1, Year 1 is Julian date 1", j == 1);
95 TEST("Returned year is 1", g_date_get_year(d) == 1);
101 TEST("Bad year is invalid", !g_date_valid_year(G_DATE_BAD_YEAR));
104 TEST("Year 2000 is a leap year", g_date_is_leap_year(2000));
105 TEST("Year 1999 is not a leap year", !g_date_is_leap_year(1999));
106 TEST("Year 1996 is a leap year", g_date_is_leap_year(1996));
107 TEST("Year 1600 is a leap year", g_date_is_leap_year(1600));
108 TEST("Year 2100 is not a leap year", !g_date_is_leap_year(2100));
109 TEST("Year 1800 is not a leap year", !g_date_is_leap_year(1800));
174 g_print("Checking year %u", y);
176 TEST("Year is valid", g_date_valid_year(y));
178 TEST("Number of Sunday weeks in year is 52 or 53",
181 TEST("Number of Monday weeks in year is 52 or 53",
224 TEST("Year accessor works", g_date_get_year(d) == y);
227 TEST("Day of year is consistent with Julian dates",
233 g_print("first day: %u this day: %u day of year: %u\n",
241 TEST("Last day of year equals number of days in year",
245 g_print("last day: %u days in year: %u\n",
250 TEST("Day of year is not more than number of days in the year",
253 TEST("Monday week of year is not more than number of weeks in the year",
257 g_print("Weeks in year: %u\n", monday_weeks_in_year);
260 TEST("Monday week of year is >= than last week of year",
266 TEST("Monday week of year on Monday 1 more than previous day's week of year",
270 TEST("ISO 8601 week of year on Monday Dec 29 - Jan 4 is 1",
273 TEST("ISO 8601 week of year on Monday 1 more than previous day's week of year",
279 TEST("Monday week of year on non-Monday 0 more than previous day's week of year",
282 TEST("ISO 8601 week of year on non-Monday 0 more than previous day's week of year (",
292 TEST("Sunday week of year is not more than number of weeks in the year",
298 TEST("Sunday week of year is >= than last week of year",
303 TEST("Sunday week of year on Sunday 1 more than previous day's week of year",
308 TEST("Sunday week of year on non-Sunday 0 more than previous day's week of year",
321 while (i < 402) /* Need to get 400 year increments in */
350 TEST("Forward days then backward days returns us to current year",
376 TEST("Forward months then backward months returns us to current year",
424 TEST("Forward years then backward years returns us to current year",