Home
last modified time | relevance | path

Searched refs:RoundToDoubleTester (Results 1 – 4 of 4) sorted by relevance

/external/guava/guava-tests/test/com/google/common/math/
DBigDecimalMathTest.java40 private static final class RoundToDoubleTester { class in BigDecimalMathTest
45 RoundToDoubleTester(BigDecimal input) { in RoundToDoubleTester() method in BigDecimalMathTest.RoundToDoubleTester
49 RoundToDoubleTester setExpectation(double expectedValue, RoundingMode... modes) { in setExpectation()
59 public RoundToDoubleTester roundUnnecessaryShouldThrow() { in roundUnnecessaryShouldThrow()
90 new RoundToDoubleTester(BigDecimal.ZERO).setExpectation(0.0, values()).test(); in testRoundToDouble_zero()
94 new RoundToDoubleTester( in testRoundToDouble_oneThird()
105 new RoundToDoubleTester(halfMinDouble) in testRoundToDouble_halfMinDouble()
115 new RoundToDoubleTester(halfMinDouble) in testRoundToDouble_halfNegativeMinDouble()
123 new RoundToDoubleTester(BigDecimal.valueOf(16)).setExpectation(16.0, values()).test(); in testRoundToDouble_smallPositive()
127 new RoundToDoubleTester(BigDecimal.valueOf(1L << 53)) in testRoundToDouble_maxPreciselyRepresentable()
[all …]
DBigIntegerMathTest.java552 private static final class RoundToDoubleTester {
557 RoundToDoubleTester(BigInteger input) {
561 RoundToDoubleTester setExpectation(double expectedValue, RoundingMode... modes) {
571 public RoundToDoubleTester roundUnnecessaryShouldThrow() {
603 new RoundToDoubleTester(BigInteger.ZERO).setExpectation(0.0, values()).test();
608 new RoundToDoubleTester(BigInteger.valueOf(16)).setExpectation(16.0, values()).test();
613 new RoundToDoubleTester(BigInteger.valueOf(1L << 53))
623 new RoundToDoubleTester(BigInteger.valueOf((1L << 53) + 1))
635 new RoundToDoubleTester(BigInteger.valueOf((1L << 54) + 1))
647 new RoundToDoubleTester(BigInteger.valueOf((1L << 54) + 3))
[all …]
/external/guava/android/guava-tests/test/com/google/common/math/
DBigDecimalMathTest.java40 private static final class RoundToDoubleTester { class in BigDecimalMathTest
45 RoundToDoubleTester(BigDecimal input) { in RoundToDoubleTester() method in BigDecimalMathTest.RoundToDoubleTester
49 RoundToDoubleTester setExpectation(double expectedValue, RoundingMode... modes) { in setExpectation()
59 public RoundToDoubleTester roundUnnecessaryShouldThrow() { in roundUnnecessaryShouldThrow()
90 new RoundToDoubleTester(BigDecimal.ZERO).setExpectation(0.0, values()).test(); in testRoundToDouble_zero()
94 new RoundToDoubleTester( in testRoundToDouble_oneThird()
105 new RoundToDoubleTester(halfMinDouble) in testRoundToDouble_halfMinDouble()
115 new RoundToDoubleTester(halfMinDouble) in testRoundToDouble_halfNegativeMinDouble()
123 new RoundToDoubleTester(BigDecimal.valueOf(16)).setExpectation(16.0, values()).test(); in testRoundToDouble_smallPositive()
127 new RoundToDoubleTester(BigDecimal.valueOf(1L << 53)) in testRoundToDouble_maxPreciselyRepresentable()
[all …]
DBigIntegerMathTest.java552 private static final class RoundToDoubleTester {
557 RoundToDoubleTester(BigInteger input) {
561 RoundToDoubleTester setExpectation(double expectedValue, RoundingMode... modes) {
571 public RoundToDoubleTester roundUnnecessaryShouldThrow() {
603 new RoundToDoubleTester(BigInteger.ZERO).setExpectation(0.0, values()).test();
608 new RoundToDoubleTester(BigInteger.valueOf(16)).setExpectation(16.0, values()).test();
613 new RoundToDoubleTester(BigInteger.valueOf(1L << 53))
623 new RoundToDoubleTester(BigInteger.valueOf((1L << 53) + 1))
635 new RoundToDoubleTester(BigInteger.valueOf((1L << 54) + 1))
647 new RoundToDoubleTester(BigInteger.valueOf((1L << 54) + 3))
[all …]