kotest-assertions / io.kotest.matchers.date / shouldHaveMinute

shouldHaveMinute

infix fun <ERROR CLASS>.shouldHaveMinute(minute: Int): <ERROR CLASS>

Asserts that the minute inputted is equaled the date time minute

    val date = Date(2019, 2, 15, 12, 10, 0, 0)

    date.shouldHaveMinute(10) // Assertion passes