doc / ch.tutteli.atrium.api.infix.en_GB / isBefore

isBefore

infix fun <T : ChronoLocalDate> Expect<T>.isBefore(expected: ChronoLocalDate): Expect<T> (source)

Expects that the subject of this expectation (a ChronoLocalDate) is before the expected.

Return
an Expect for the subject of this expectation.

Since
0.12.0

infix fun <T : ChronoLocalDate> Expect<T>.isBefore(expected: String): Expect<T> (source)

Expects that the subject of this expectation (a ChronoLocalDate) is before the expected given as String. The expected parameter needs to be in the form of yyyy-mm-dd or else a java.time.DateTimeException will be thrown.

Return
an Expect for the subject of this expectation.

Since
0.14.0

infix fun <T : ChronoLocalDateTime<out ChronoLocalDate>> Expect<T>.isBefore(expected: ChronoLocalDateTime<*>): Expect<T> (source)

Expects that the subject of this expectation (a ChronoLocalDateTime) is before the expected.

Return
an Expect for the subject of this expectation.

Since
0.12.0

infix fun <T : ChronoZonedDateTime<out ChronoLocalDate>> Expect<T>.isBefore(expected: ChronoZonedDateTime<*>): Expect<T> (source)

Expects that the subject of this expectation (a ChronoZonedDateTime) is before the expected.

Return
an Expect for the subject of this expectation.

Since
0.12.0