kotest-assertions-core / io.kotest.matchers.date / java.time.LocalDateTime / shouldHaveNano

shouldHaveNano

infix fun LocalDateTime.shouldHaveNano(nano: Int): Unit

Asserts that the nano inputted is equaled the date time nano

    val date = LocalDateTime.of(2019, 2, 15, 12, 10, 0, 12)

    date.shouldHaveNano(10) // Assertion passes