Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/math/
DBigDecimalMathTest.java49 RoundToDoubleTester setExpectation(double expectedValue, RoundingMode... modes) { in setExpectation() method in BigDecimalMathTest.RoundToDoubleTester
90 new RoundToDoubleTester(BigDecimal.ZERO).setExpectation(0.0, values()).test(); in testRoundToDouble_zero()
97 .setExpectation(0.33333333333333337, UP, CEILING) in testRoundToDouble_oneThird()
98 .setExpectation(0.3333333333333333, HALF_EVEN, FLOOR, DOWN, HALF_UP, HALF_DOWN) in testRoundToDouble_oneThird()
107 .setExpectation(Double.MIN_VALUE, UP, CEILING, HALF_UP) in testRoundToDouble_halfMinDouble()
108 .setExpectation(0.0, HALF_EVEN, FLOOR, DOWN, HALF_DOWN) in testRoundToDouble_halfMinDouble()
117 .setExpectation(-Double.MIN_VALUE, UP, FLOOR, HALF_UP) in testRoundToDouble_halfNegativeMinDouble()
118 .setExpectation(-0.0, HALF_EVEN, CEILING, DOWN, HALF_DOWN) in testRoundToDouble_halfNegativeMinDouble()
123 new RoundToDoubleTester(BigDecimal.valueOf(16)).setExpectation(16.0, values()).test(); in testRoundToDouble_smallPositive()
128 .setExpectation(Math.pow(2, 53), values()) in testRoundToDouble_maxPreciselyRepresentable()
[all …]
DBigIntegerMathTest.java561 RoundToDoubleTester setExpectation(double expectedValue, RoundingMode... modes) {
603 new RoundToDoubleTester(BigInteger.ZERO).setExpectation(0.0, values()).test();
608 new RoundToDoubleTester(BigInteger.valueOf(16)).setExpectation(16.0, values()).test();
614 .setExpectation(Math.pow(2, 53), values())
624 .setExpectation(twoToThe53, DOWN, FLOOR, HALF_DOWN, HALF_EVEN)
625 .setExpectation(Math.nextUp(twoToThe53), CEILING, UP, HALF_UP)
636 .setExpectation(twoToThe54, DOWN, FLOOR, HALF_DOWN, HALF_UP, HALF_EVEN)
637 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP)
648 .setExpectation(twoToThe54, DOWN, FLOOR)
649 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN)
[all …]
/external/guava/android/guava-tests/test/com/google/common/math/
DBigDecimalMathTest.java49 RoundToDoubleTester setExpectation(double expectedValue, RoundingMode... modes) { in setExpectation() method in BigDecimalMathTest.RoundToDoubleTester
90 new RoundToDoubleTester(BigDecimal.ZERO).setExpectation(0.0, values()).test(); in testRoundToDouble_zero()
97 .setExpectation(0.33333333333333337, UP, CEILING) in testRoundToDouble_oneThird()
98 .setExpectation(0.3333333333333333, HALF_EVEN, FLOOR, DOWN, HALF_UP, HALF_DOWN) in testRoundToDouble_oneThird()
107 .setExpectation(Double.MIN_VALUE, UP, CEILING, HALF_UP) in testRoundToDouble_halfMinDouble()
108 .setExpectation(0.0, HALF_EVEN, FLOOR, DOWN, HALF_DOWN) in testRoundToDouble_halfMinDouble()
117 .setExpectation(-Double.MIN_VALUE, UP, FLOOR, HALF_UP) in testRoundToDouble_halfNegativeMinDouble()
118 .setExpectation(-0.0, HALF_EVEN, CEILING, DOWN, HALF_DOWN) in testRoundToDouble_halfNegativeMinDouble()
123 new RoundToDoubleTester(BigDecimal.valueOf(16)).setExpectation(16.0, values()).test(); in testRoundToDouble_smallPositive()
128 .setExpectation(Math.pow(2, 53), values()) in testRoundToDouble_maxPreciselyRepresentable()
[all …]
DBigIntegerMathTest.java561 RoundToDoubleTester setExpectation(double expectedValue, RoundingMode... modes) {
603 new RoundToDoubleTester(BigInteger.ZERO).setExpectation(0.0, values()).test();
608 new RoundToDoubleTester(BigInteger.valueOf(16)).setExpectation(16.0, values()).test();
614 .setExpectation(Math.pow(2, 53), values())
624 .setExpectation(twoToThe53, DOWN, FLOOR, HALF_DOWN, HALF_EVEN)
625 .setExpectation(Math.nextUp(twoToThe53), CEILING, UP, HALF_UP)
636 .setExpectation(twoToThe54, DOWN, FLOOR, HALF_DOWN, HALF_UP, HALF_EVEN)
637 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP)
648 .setExpectation(twoToThe54, DOWN, FLOOR)
649 .setExpectation(Math.nextUp(twoToThe54), CEILING, UP, HALF_DOWN, HALF_UP, HALF_EVEN)
[all …]