public class ToleranceKt
| Modifier and Type | Method and Description |
|---|---|
static ToleranceMatcher |
plusOrMinus(double $receiver,
double tolerance)
Creates a matcher for the interval [this - tolerance , this + tolerance]
|
public static ToleranceMatcher plusOrMinus(double $receiver, double tolerance)
Creates a matcher for the interval [this - tolerance , this + tolerance]
0.1 shouldBe (0.4 plusOrMinus 0.5) // Assertion passes
0.1 shouldBe (0.4 plusOrMinus 0.2) // Assertion fails