Searched refs:closeTo (Results 1 - 5 of 5) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/number/
H A DIsCloseToTest.java6 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 DBigDecimalCloseToTest.java8 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 DIsCloseTo.java53 * <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 DBigDecimalCloseTo.java51 * <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 DMatchers.java1215 * <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