public class NaNKt
| Modifier and Type | Method and Description |
|---|---|
static Matcher<java.lang.Double> |
beNaN()
Matcher that matches Double.NaN
|
static void |
shouldBeNaN(double $receiver)
Asserts that this Double is Double.NaN
|
static void |
shouldNotBeNaN(double $receiver)
Assert that this Double is not Double.NaN
|
public static void shouldBeNaN(double $receiver)
Asserts that this Double is Double.NaN
Verifies that this Double is the Not-a-Number constant Double.NaN
Opposite of NaNKt.shouldNotBeNaN
Double.NaN.shouldBeNaN() // Assertion passes
1.0.shouldBeNaN() // Assertion fails
NaNKt.shouldNotBeNaN,
NaNKt.beNaNpublic static void shouldNotBeNaN(double $receiver)
Assert that this Double is not Double.NaN
Verifies that this Double is NOT the Not-a-Number constant Double.NaN
Opposite of NaNKt.shouldBeNaN
1.0.shouldNotBeNaN() // Assertion passes
Double.NaN.shouldNotBeNaN() // Assertion fails
NaNKt.shouldBeNaN,
NaNKt.beNaNpublic static Matcher<java.lang.Double> beNaN()
Matcher that matches Double.NaN
Verifies that a specific Double is the Not-a-Number constant Double.NaN
0.5 should beNaN() // Assertion fails
Double.NaN should beNaN() // Assertion passes
NaNKt.shouldBeNaN,
NaNKt.shouldNotBeNaN