toBeGreaterThanOrEqualTo

infix fun <T : Comparable<T>> Expect<T>.toBeGreaterThanOrEqualTo(expected: T): Expect<T>(source)

Expects that the subject of this expectation is greater than or equal (>=) expected. The comparison is carried out with Comparable.compareTo.

You could also use notToBeLessThan which is logically equivalent.

Return

an Expect for the subject of this expectation.

Since

0.17.0

Samples

expect(2) toBeGreaterThanOrEqualTo 1
expect(2) toBeGreaterThanOrEqualTo 2

fails {
    expect(1) toBeGreaterThanOrEqualTo 2
}

Deprecated

'toBeGreaterThanOrEqualTo' is deprecated in favour of 'toBeAfterOrTheSamePointInTimeAs' which is based on ChronoZonedDateTime.isAfter and ChronoZonedDateTime.isEqual instead of compareTo

Replace with

toBeAfterOrTheSamePointInTimeAs(expected)

Deprecated overload which shall give a hint to the user/guide the user to use toBeAfterOrTheSamePointInTimeAs instead.

Since

1.0.0