infix fun <ERROR CLASS>.shouldHaveYear(year: Int): <ERROR CLASS>
Asserts that the date has the given year.
val date = Date(2019, 2, 15, 12, 0, 0, 0) date.shouldHaveDayOfWeek(2019) // Assertion passes