/libcore/ojluni/src/test/java/math/BigDecimal/ |
D | StrippingZerosTest.java | 44 BigDecimal [][] testCases = { in testStrippingZeros() local 81 for(int i = 0; i < testCases.length; i++) { in testStrippingZeros() 83 BigDecimal stripped = testCases[i][0].stripTrailingZeros(); in testStrippingZeros() 84 Assert.assertEquals(stripped, testCases[i][1], in testStrippingZeros() 85 "For input " + testCases[i][0].toString() + in testStrippingZeros() 87 testCases[i][1].toString() + ", got " + in testStrippingZeros() 88 testCases[i][0].stripTrailingZeros()); in testStrippingZeros() 90 testCases[i][0] = testCases[i][0].negate(); in testStrippingZeros() 91 testCases[i][1] = testCases[i][1].negate(); in testStrippingZeros() 93 stripped = testCases[i][0].stripTrailingZeros(); in testStrippingZeros() [all …]
|
D | ToPlainStringTests.java | 44 String [][] testCases = { in testToPlainString() local 79 for(String[] testCase: testCases) { in testToPlainString()
|
D | DivideTests.java | 212 BigDecimal[][] testCases = { in properScaleTests() local 224 for(BigDecimal[] tc : testCases) { in properScaleTests() 235 BigDecimal[][] testCases = { in trailingZeroTests() local 240 for(BigDecimal[] tc : testCases) { in trailingZeroTests() 269 BigDecimal[][] testCases = { in scaledRoundedDivideTests() local 299 for(BigDecimal[] tc : testCases) { in scaledRoundedDivideTests()
|
D | NegateTests.java | 50 static void negateTest(BigDecimal[][] testCases, MathContext mc) { in negateTest() argument 51 for (BigDecimal [] testCase : testCases) { in negateTest()
|
D | PowTests.java | 41 BigDecimal[][] testCases = { in zeroAndOneTests() local 63 for(BigDecimal[] testCase: testCases) { in zeroAndOneTests()
|
D | CompareToTests.java | 46 BigDecimal [][] testCases = { in compareToTests() local 87 for (BigDecimal[] testCase : testCases) { in compareToTests()
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 103 Map<Supplier<DoubleStream>, Double> testCases = new LinkedHashMap<>(); in testNonfiniteSum() local 104 testCases.put(() -> DoubleStream.of(MAX_VALUE, MAX_VALUE), POSITIVE_INFINITY); in testNonfiniteSum() 105 testCases.put(() -> DoubleStream.of(-MAX_VALUE, -MAX_VALUE), NEGATIVE_INFINITY); in testNonfiniteSum() 107 testCases.put(() -> DoubleStream.of(1.0d, POSITIVE_INFINITY, 1.0d), POSITIVE_INFINITY); in testNonfiniteSum() 108 testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY), POSITIVE_INFINITY); in testNonfiniteSum() 109 … testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY, POSITIVE_INFINITY), POSITIVE_INFINITY); in testNonfiniteSum() 110 …testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY, POSITIVE_INFINITY, 0.0), POSITIVE_INFINITY); in testNonfiniteSum() 112 testCases.put(() -> DoubleStream.of(1.0d, NEGATIVE_INFINITY, 1.0d), NEGATIVE_INFINITY); in testNonfiniteSum() 113 testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY), NEGATIVE_INFINITY); in testNonfiniteSum() 114 … testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY, NEGATIVE_INFINITY), NEGATIVE_INFINITY); in testNonfiniteSum() [all …]
|
/libcore/ojluni/src/test/java/lang/Math/ |
D | IeeeRecommendedTests.java | 368 float[][] testCases = { in testFloatNextAfter() local 424 for (float[] testCase : testCases) { in testFloatNextAfter() 436 double[][] testCases = { in testDoubleNextAfter() local 492 for (double[] testCase : testCases) { in testDoubleNextAfter() 506 float[][] testCases = { in testFloatNextUp() local 524 for (float[] testCase : testCases) { in testFloatNextUp() 540 double[][] testCases = { in testDoubleNextUp() local 558 for (double[] testCase : testCases) { in testDoubleNextUp() 576 float[][] testCases = { in testFloatNextDown() local 595 for (float[] testCase : testCases) { in testFloatNextDown() [all …]
|
D | WorstCaseTests.java | 62 double[][] testCases = { in testWorstExp() local 98 for (double[] testCase : testCases) { in testWorstExp() 111 double[][] testCases = { in testWorstLog() local 126 for (double[] testCase : testCases) { in testWorstLog() 139 double[][] testCases = { in testWorstSin() local 155 for (double[] testCase : testCases) { in testWorstSin() 168 double[][] testCases = { in testWorstAsin() local 183 for (double[] testCase : testCases) { in testWorstAsin() 196 double[][] testCases = { in testWorstCos() local 212 for (double[] testCase : testCases) { in testWorstCos() [all …]
|
D | FusedMultiplyAddTests.java | 55 double[][] testCases = { in testNonFiniteD() local 112 for (double[] testCase : testCases) { in testNonFiniteD() 119 double[][] testCases = { in testZeroesD() local 161 for (double[] testCase : testCases) { in testZeroesD() 168 double[][] testCases = { in testSimpleD() local 212 for (double[] testCase : testCases) { in testSimpleD() 219 float[][] testCases = { in testNonFiniteF() local 260 for (float[] testCase : testCases) { in testNonFiniteF() 267 float[][] testCases = { in testZeroesF() local 305 for (float[] testCase : testCases) { in testZeroesF() [all …]
|
D | AbsTests.java | 39 int[][] testCases = { in testInRangeIntAbs() local 50 for(var testCase : testCases) { in testInRangeIntAbs() 77 long[][] testCases = { in testInRangeLongAbs() local 90 for(var testCase : testCases) { in testInRangeLongAbs()
|
D | RoundTests.java | 36 double[][] testCases = { in testNearDoubleHalfCases() local 46 for (double[] testCase : testCases) { in testNearDoubleHalfCases() 58 float[][] testCases = { in testNearFloatHalfCases() local 68 for (float[] testCase : testCases) { in testNearFloatHalfCases()
|
D | Atan2Tests.java | 48 double[][] testCases = { in testAtan2() local 52 for (double[] testCase : testCases) { in testAtan2()
|
D | ExpCornerCaseTests.java | 41 double[][] testCases = { in testExpCornerCases() local 46 for (double[] testCase : testCases) { in testExpCornerCases()
|
D | HyperbolicTests.java | 74 double[][] testCases = { in testSinh() local 238 for (double[] testCase : testCases) { in testSinh() 423 double[][] testCases = { in testCosh() local 587 for (double[] testCase : testCases) { in testCosh() 770 double[][] testCases = { in testTanh() local 934 for (double[] testCase : testCases) { in testTanh()
|
D | Rint.java | 48 double[][] testCases = { in testRint() local 99 for (double[] testCase : testCases) { in testRint()
|
/libcore/ojluni/src/test/java/text/Format/MessageFormat/ |
D | MessageTest.java | 62 String[] testCases = { in TestMSGPatternTest() local 74 for (int i = 0; i < testCases.length; ++i) { in TestMSGPatternTest() 79 logln( i + " Pat in: " + testCases[i]); in TestMSGPatternTest() 80 MessageFormat form = new MessageFormat(testCases[i]); in TestMSGPatternTest()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetSocketAddressTest.java | 113 Object[] testCases = { in testSerializationSelf() local 117 SerializationTest.verifySelf(testCases, COMPARATOR); in testSerializationSelf() 125 Object[] testCases = { in testSerializationCompatibility() local 129 SerializationTest.verifyGolden(this, testCases, COMPARATOR); in testSerializationCompatibility()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | HexEncodingTest.java | 31 Object[][] testCases = new Object[][] { in testEncodeByte() local 43 for (Object[] testCase : testCases) { in testEncodeByte() 56 Object[][] testCases = new Object[][] { in testEncodeBytes() local 60 for (Object[] testCase : testCases) { in testEncodeBytes()
|
/libcore/ojluni/src/test/java/lang/StrictMath/ |
D | HyperbolicTests.java | 62 double[][] testCases = { in testSinh() local 149 for (double[] testCase : testCases) { in testSinh() 156 double[][] testCases = { in testCosh() local 189 for (double[] testCase : testCases) { in testCosh() 196 double[][] testCases = { in testTanh() local 257 for (double[] testCase : testCases) { in testTanh()
|
D | ExpTests.java | 63 double[][] testCases = { in testExp() local 75 for (double[] testCase : testCases) { in testExp()
|
D | PowTests.java | 51 double[][] testCases = { in testPow() local 272 for (double[] testCase : testCases) { in testPow()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | PermuteArgsTest.java | 136 static int testCases; field in PermuteArgsTest 144 testCases = 0; in test0() 152 System.out.println("ran a total of "+testCases+" test cases"); in test0() 171 int testCases0 = testCases; in test() 194 System.out.println("ran "+(testCases - testCases0)+" test cases for "+name+" }"); in test() 240 int testCases0 = testCases; in testPermutations() 262 case 2: assert(testCases - testCases0 == 2); break; in testPermutations() 263 case 3: assert(testCases - testCases0 == 6); break; in testPermutations() 264 case 4: assert(testCases - testCases0 == 24); break; in testPermutations() 265 case 5: assert(testCases - testCases0 == 120); break; in testPermutations() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | EnumTest.java | 224 Object[] testCases = { enumColorMap, Sample.CURLY }; in testSerializationSelf() local 226 SerializationTest.verifySelf(testCases); in testSerializationSelf() 253 Object[] testCases = { Sample.CURLY, new MockEnum(), in testSerializationCompatibility() local 259 SerializationTest.verifyGolden(this, testCases); in testSerializationCompatibility()
|
/libcore/ojluni/src/test/java/lang/Double/ |
D | ParseHexFloatingPointTest.java | 194 PairSD [] testCases = { in testDouble() local 246 for (int i = 0; i < testCases.length; i++) { in testDouble() 247 testCase(testCases[i].s,testCases[i].d); in testDouble()
|