Home
last modified time | relevance | path

Searched refs:testCases (Results 1 – 25 of 41) sorted by relevance

12

/libcore/ojluni/src/test/java/math/BigDecimal/
DStrippingZerosTest.java44 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 …]
DToPlainStringTests.java44 String [][] testCases = { in testToPlainString() local
79 for(String[] testCase: testCases) { in testToPlainString()
DDivideTests.java212 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()
DNegateTests.java50 static void negateTest(BigDecimal[][] testCases, MathContext mc) { in negateTest() argument
51 for (BigDecimal [] testCase : testCases) { in negateTest()
DPowTests.java41 BigDecimal[][] testCases = { in zeroAndOneTests() local
63 for(BigDecimal[] testCase: testCases) { in zeroAndOneTests()
DCompareToTests.java46 BigDecimal [][] testCases = { in compareToTests() local
87 for (BigDecimal[] testCase : testCases) { in compareToTests()
/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java103 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()
109testCases.put(() -> DoubleStream.of(POSITIVE_INFINITY, POSITIVE_INFINITY), POSITIVE_INFINITY); in testNonfiniteSum()
110testCases.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()
114testCases.put(() -> DoubleStream.of(NEGATIVE_INFINITY, NEGATIVE_INFINITY), NEGATIVE_INFINITY); in testNonfiniteSum()
[all …]
/libcore/ojluni/src/test/java/lang/Math/
DIeeeRecommendedTests.java368 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 …]
DWorstCaseTests.java62 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 …]
DFusedMultiplyAddTests.java55 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 …]
DAbsTests.java39 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()
DRoundTests.java36 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()
DAtan2Tests.java48 double[][] testCases = { in testAtan2() local
52 for (double[] testCase : testCases) { in testAtan2()
DExpCornerCaseTests.java41 double[][] testCases = { in testExpCornerCases() local
46 for (double[] testCase : testCases) { in testExpCornerCases()
DHyperbolicTests.java74 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()
DRint.java48 double[][] testCases = { in testRint() local
99 for (double[] testCase : testCases) { in testRint()
/libcore/ojluni/src/test/java/text/Format/MessageFormat/
DMessageTest.java62 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/
DInetSocketAddressTest.java113 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/
DHexEncodingTest.java31 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/
DHyperbolicTests.java62 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()
DExpTests.java63 double[][] testCases = { in testExp() local
75 for (double[] testCase : testCases) { in testExp()
DPowTests.java51 double[][] testCases = { in testPow() local
272 for (double[] testCase : testCases) { in testPow()
/libcore/ojluni/src/test/java/lang/invoke/
DPermuteArgsTest.java136 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/
DEnumTest.java224 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/
DParseHexFloatingPointTest.java194 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()

12