isLessThan

infix inline fun <T : Short?> AssertionContext<T>.isLessThan(obj: Short)

Verifies that the Short under test is less than the given value.

Since

2.0.0

Receiver

Any nullable or non-nullable Short.

Parameters

obj

The value which is supposed the be greater than the Short under test.

See also

Throws

In case the assertion fails.

Samples


fun main() { 
   //sampleStart 
   // given
val obj: Short = 11

// then
obj mustSatisfy {
    it isLessThan 12.toShort()
} 
   //sampleEnd
}