public class InfinityKt
| Modifier and Type | Method and Description |
|---|---|
static Matcher<java.lang.Double> |
beNegativeInfinity()
Matcher that matches whether a double is Double.NEGATIVE_INFINITY or not
|
static Matcher<java.lang.Double> |
bePositiveInfinity()
Matcher that matches whether a double is Double.POSITIVE_INFINITY or not
|
static void |
shouldBeNegativeInfinity(double $receiver)
Verifies that this double is Double.NEGATIVE_INFINITY
|
static void |
shouldBePositiveInfinity(double $receiver)
Verifies that this double is Double.POSITIVE_INFINITY
|
static void |
shouldNotBeNegativeInfinity(double $receiver)
Verifies that this double is NOT Double.NEGATIVE_INFINITY
|
static void |
shouldNotBePositiveInfinity(double $receiver)
Verifies that this double is NOT Double.POSITIVE_INFINITY
|
public static void shouldBePositiveInfinity(double $receiver)
Verifies that this double is Double.POSITIVE_INFINITY
Opposite of InfinityKt.shouldNotBePositiveInfinity
Double.POSITIVE_INFINITY.shouldBePositiveInfinity() // Assertion passes
1.0.shouldBePositiveInfinity() // Assertion fails
public static void shouldNotBePositiveInfinity(double $receiver)
Verifies that this double is NOT Double.POSITIVE_INFINITY
Opposite of InfinityKt.shouldBePositiveInfinity
Double.POSITIVE_INFINITY.shouldNotBePositiveInfinity() // Assertion fails
1.0.shouldBeNotPositiveInfinity() // Assertion passes
public static Matcher<java.lang.Double> bePositiveInfinity()
Matcher that matches whether a double is Double.POSITIVE_INFINITY or not
Double.POSITIVE_INFINITY should bePositiveInfinity() // Assertion passes
1.0 should bePositiveInfinity() // Assertion fails
public static void shouldBeNegativeInfinity(double $receiver)
Verifies that this double is Double.NEGATIVE_INFINITY
Opposite of InfinityKt.shouldNotBeNegativeInfinity
Double.NEGATIVE_INFINITY.shouldBeNegativeInfinity() // Assertion passes
1.0.shouldBeNegativeInfinity() // Assertion fails
public static void shouldNotBeNegativeInfinity(double $receiver)
Verifies that this double is NOT Double.NEGATIVE_INFINITY
Opposite of InfinityKt.shouldBeNegativeInfinity
Double.NEGATIVE_INFINITY.shouldNotBeNegativeInfinity() // Assertion fails
1.0.shouldBeNotNegativeInfinity() // Assertion passes
public static Matcher<java.lang.Double> beNegativeInfinity()
Matcher that matches whether a double is Double.NEGATIVE_INFINITY or not
Double.NEGATIVE_INFINITY should beNegativeInfinity() // Assertion passes
1.0 should beNegativeInfinity() // Assertion fails