public class PositiveKt
| Modifier and Type | Method and Description |
|---|---|
static Matcher<java.lang.Double> |
positive() |
static void |
shouldBePositive(double $receiver)
Asserts that this Double is positive
|
static void |
shouldNotBePositive(double $receiver)
Asserts that this Double is not positive
|
public static void shouldBePositive(double $receiver)
Asserts that this Double is positive
Verifies that this Double is strictly greater than 0.0.
Opposite of PositiveKt.shouldNotBePositive
0.1.shouldBePositive() // Assertion passes
(-0.1).shouldBePositive() // Assertion fails
public static void shouldNotBePositive(double $receiver)
Asserts that this Double is not positive
Verifies that this Double is not strictly greater than 0.0.
Opposite of PositiveKt.shouldBePositive
0.1.shouldNotBePositive() // Assertion fails
(-0.1).shouldNotBePositive() // Assertion passes
public static Matcher<java.lang.Double> positive()