IntRule

fun IntRule(predicate: Int.() -> Boolean, message: () -> String): IntRule

A rule that tests the integer value.

Return

Creates a new instance of IntRule.

Parameters

predicate

The predicate to test the integer value. Returns true if the test passes; false otherwise.

message

The message to return when the test fails.