kotest-assertions-core / io.kotest.matchers.date / java.time.LocalTime

Extensions for java.time.LocalTime

shouldBeAfter

Asserts that this is after time

infix fun LocalTime.shouldBeAfter(time: LocalTime): Unit

shouldBeBefore

Asserts that this is before time

infix fun LocalTime.shouldBeBefore(time: LocalTime): Unit

shouldBeBetween

Asserts that this is between a and b

fun LocalTime.shouldBeBetween(a: LocalTime, b: LocalTime): Unit

shouldHaveSameHoursAs

Asserts that hours in this time are the same as time's hours

infix fun LocalTime.shouldHaveSameHoursAs(time: LocalTime): Unit

shouldHaveSameMinutesAs

Asserts that minutes in this time are the same as time's minutes

infix fun LocalTime.shouldHaveSameMinutesAs(time: LocalTime): Unit

shouldHaveSameNanosAs

Asserts that nanos in this time are the same as time's nanos

infix fun LocalTime.shouldHaveSameNanosAs(time: LocalTime): Unit

shouldHaveSameSecondsAs

Asserts that seconds in this time are the same as time's seconds

infix fun LocalTime.shouldHaveSameSecondsAs(time: LocalTime): Unit

shouldNotBeAfter

Asserts that this is NOT after time

infix fun LocalTime.shouldNotBeAfter(time: LocalTime): Unit

shouldNotBeBefore

Asserts that this is NOT before time

infix fun LocalTime.shouldNotBeBefore(time: LocalTime): Unit

shouldNotBeBetween

Asserts that this is NOT between a and b

fun LocalTime.shouldNotBeBetween(a: LocalTime, b: LocalTime): Unit

shouldNotHaveSameHoursAs

Asserts that hours in this time are NOT the same as time's hours

infix fun LocalTime.shouldNotHaveSameHoursAs(time: LocalTime): Unit

shouldNotHaveSameMinutesAs

Asserts that minutes in this time are NOT the same as time's minutes

infix fun LocalTime.shouldNotHaveSameMinutesAs(time: LocalTime): Unit

shouldNotHaveSameNanosAs

Asserts that nanos in this time are NOT the same as time's nanos

infix fun LocalTime.shouldNotHaveSameNanosAs(time: LocalTime): Unit

shouldNotHaveSameSecondsAs

Asserts that seconds in this time are NOT the same as time's seconds

infix fun LocalTime.shouldNotHaveSameSecondsAs(time: LocalTime): Unit