isNaN

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

Validates that the double value is NaN.

Usage:

rules<Double> {
isNaN { "must be NaN" }
}

Parameters

message

The message to return when the test fails.


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

Validates that the float value is NaN.

Usage:

rules<Float> {
isNaN { "must be NaN" }
}

Parameters

message

The message to return when the test fails.