assertTrue

open fun assertTrue(lazyMessage: () -> String?, actual: Boolean)(source)

Asserts that the specified value is true.

Since Kotlin

1.0

Parameters

lazyMessage

the function to return a message to report if the assertion fails.


open fun assertTrue(message: String?, actual: Boolean)(source)

Asserts that the specified value is true.

Since Kotlin

1.0

Parameters

message

the message to report if the assertion fails.