notNaN

fun DoubleRuleBuilder.notNaN(message: () -> String)

Validates that the double value is not NaN.

Usage:

rules<Double> {
notNaN { "must be not NaN" }
}

Parameters

message

The message to return when the test fails.


fun FloatRuleBuilder.notNaN(message: () -> String)

Validates that the float value is not NaN.

Usage:

rules<Float> {
notNaN { "must be not NaN" }
}

Parameters

message

The message to return when the test fails.