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

shouldHaveSecond

infix fun <ERROR CLASS>.shouldHaveSecond(second: Int): <ERROR CLASS>

Asserts that the second inputted is equaled the date time second

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

    date.shouldHaveSecond(11) // Assertion passes