Searched refs:closeTo (Results 1 - 5 of 5) sorted by relevance
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/number/ |
H A D | IsCloseToTest.java | 6 import static org.hamcrest.number.IsCloseTo.closeTo; 9 private final Matcher<Double> matcher = closeTo(1.0d, 0.5d); 14 return closeTo(irrelevant, irrelevant);
|
H A D | BigDecimalCloseToTest.java | 8 import static org.hamcrest.number.BigDecimalCloseTo.closeTo; 11 private final Matcher<BigDecimal> matcher = closeTo(new BigDecimal("1.0"), new BigDecimal("0.5")); 16 return closeTo(irrelevant, irrelevant);
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/number/ |
H A D | IsCloseTo.java | 53 * <pre>assertThat(1.03, is(closeTo(1.0, 0.03)))</pre> 60 public static Matcher<Double> closeTo(double operand, double error) { method in class:IsCloseTo
|
H A D | BigDecimalCloseTo.java | 51 * <pre>assertThat(new BigDecimal("1.03"), is(closeTo(new BigDecimal("1.0"), new BigDecimal("0.03"))))</pre> 58 public static Matcher<BigDecimal> closeTo(BigDecimal operand, BigDecimal error) { method in class:BigDecimalCloseTo
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/ |
H A D | Matchers.java | 1215 * <pre>assertThat(1.03, is(closeTo(1.0, 0.03)))</pre> 1222 public static org.hamcrest.Matcher<java.lang.Double> closeTo(double operand, double error) { method in class:Matchers 1223 return org.hamcrest.number.IsCloseTo.closeTo(operand, error); 1240 * <pre>assertThat(new BigDecimal("1.03"), is(closeTo(new BigDecimal("1.0"), new BigDecimal("0.03"))))</pre> 1247 public static org.hamcrest.Matcher<java.math.BigDecimal> closeTo(java.math.BigDecimal operand, java.math.BigDecimal error) { method in class:Matchers 1248 return org.hamcrest.number.BigDecimalCloseTo.closeTo(operand, error);
|
Completed in 204 milliseconds