public class LessThanKt
| Modifier and Type | Method and Description |
|---|---|
static Matcher<java.lang.Double> |
beLessThan(double x) |
static Matcher<java.lang.Double> |
lt(double x) |
static void |
shouldBeLessThan(double $receiver,
double x)
Asserts that this Double is strictly less than x
|
static void |
shouldNotBeLessThan(double $receiver,
double x)
Asserts that this Double is not strictly less than x
|
public static void shouldBeLessThan(double $receiver,
double x)
Asserts that this Double is strictly less than x
Verifies that this Double is strictly less than x (excludes x itself).
Opposite of LessThanKt.shouldNotBeLessThan
0.1 shouldBeLessThan 0.0 // Assertion fails
0.1 shouldBeLessThan 0.1 // Assertion fails
0.1 shouldBeLessThan 0.2 // Assertion passes
public static void shouldNotBeLessThan(double $receiver,
double x)
Asserts that this Double is not strictly less than x
Opposite of LessThanKt.shouldBeLessThan
0.1 shouldNotBeLessThan 0.0 // Assertion passes
0.1 shouldNotBeLessThan 0.1 // Assertion passes
0.1 shouldNotBeLessThan 0.2 // Assertion fails
public static Matcher<java.lang.Double> lt(double x)
public static Matcher<java.lang.Double> beLessThan(double x)