Home
last modified time | relevance | path

Searched refs:failures (Results 1 – 22 of 22) sorted by relevance

/libcore/ojluni/src/test/java/lang/Math/
DClamp.java34 int failures = 0; in main() local
36 failures += testIntClamp(); in main()
37 failures += testLongClamp(); in main()
38 failures += testDoubleClamp(); in main()
39 failures += testFloatClamp(); in main()
41 if (failures > 0) { in main()
42 System.err.println("Testing clamp incurred " + failures + " failures."); in main()
48 int failures = 0; in testIntClamp() local
74failures += checkEquals("(int) Math.clamp(" + value + ", " + min + ", " + max + ")", Math.clamp(va… in testIntClamp()
75failures += checkEquals("(int) StrictMath.clamp(" + value + ", " + min + ", " + max + ")", StrictM… in testIntClamp()
[all …]
DMultiplicationTests.java103 int failures = 0; in test() local
126 failures++; in test()
133 failures++; in test()
137 return failures; in test()
151 int failures = testMultiplyHigh() + testUnsignedMultiplyHigh(); in main() local
153 if (failures > 0) { in main()
155 + failures + " failures."); in main()
DHyperbolicTests.java356 int failures = 0; in testSinhCaseWithTolerance() local
370 return failures; in testSinhCaseWithTolerance()
376 int failures = 0; in testSinhCaseWithUlpDiff() local
704 int failures = 0; in testCoshCaseWithTolerance() local
718 return failures; in testCoshCaseWithTolerance()
724 int failures = 0; in testCoshCaseWithUlpDiff() local
987 int failures = 0; in testTanhCaseWithTolerance() local
1001 return failures; in testTanhCaseWithTolerance()
DExpm1Tests.java186 int failures = 0; in testExpm1CaseWithUlpDiff() local
212 return failures; in testExpm1CaseWithUlpDiff()
/libcore/ojluni/src/test/java/util/stream/
DTestDoubleSumAverage.java39 int failures = 0; in main() local
41 failures += testZeroAverageOfNonEmptyStream(); in main()
42 failures += testForCompenstation(); in main()
43 failures += testNonfiniteSum(); in main()
45 if (failures > 0) { in main()
46 throw new RuntimeException("Found " + failures + " numerical failure(s)."); in main()
64 int failures = 0; in testForCompenstation() local
85 failures += compareUlpDifference(expectedSum, stats.getSum(), 3); in testForCompenstation()
86 failures += compareUlpDifference(expectedAvg, stats.getAverage(), 3); in testForCompenstation()
88 failures += compareUlpDifference(expectedSum, in testForCompenstation()
[all …]
/libcore/dalvik/test-rules/src/test/java/libcore/dalvik/system/
DCloseGuardSupportTest.java38 List<Failure> failures = JUnitCore.runClasses(DoesReleaseResource.class).getFailures(); in testDoesReleaseResource() local
39 assertEquals(Collections.emptyList(), failures); in testDoesReleaseResource() local
53 List<Failure> failures = JUnitCore.runClasses(DoesReleaseResourceTwice.class).getFailures(); in testDoesReleaseResourceTwice() local
54 assertEquals(Collections.emptyList(), failures); in testDoesReleaseResourceTwice() local
69 List<Failure> failures = JUnitCore.runClasses(DoesNotReleaseResource.class).getFailures(); in testDoesNotReleaseResource() local
70 assertEquals("Failure count", 1, failures.size()); in testDoesNotReleaseResource()
71 Failure failure = failures.get(0); in testDoesNotReleaseResource()
85 List<Failure> failures = JUnitCore in testDoesNotReleaseResourceDueToFailure() local
88 assertEquals("Failure count", 1, failures.size()); in testDoesNotReleaseResourceDueToFailure()
89 Failure failure = failures.get(0); in testDoesNotReleaseResourceDueToFailure()
[all …]
/libcore/ojluni/src/test/java/math/BigDecimal/
DIntValueExactTests.java38 int failures = 0; in main() local
40 failures += intValueExactSuccessful(); in main()
41 failures += intValueExactExceptional(); in main()
43 if (failures > 0) { in main()
44 throw new RuntimeException("Incurred " + failures + in main()
54 int failures = 0; in intValueExactSuccessful() local
83 failures++; in intValueExactSuccessful()
88 failures++; in intValueExactSuccessful()
92 return failures; in intValueExactSuccessful()
96 int failures = 0; in intValueExactExceptional() local
[all …]
DIntegralValueTests.java36 int failures = in main() local
39 if (failures != 0) { in main()
41 ("Incurred " + failures + " failures for {int,long}Value()."); in main()
202 int failures = 0; in integralValuesTest() local
210 failures += reportError(bd, expected, intValue, isInt); in integralValuesTest()
215 failures += reportError(bd, expected, longValue, isInt); in integralValuesTest()
219 failures++; in integralValuesTest()
224 return failures; in integralValuesTest()
DAddTests.java51 int failures = 0; in simpleTests() local
66 failures++; in simpleTests()
68 return failures; in simpleTests()
261 int failures = 0; in arithmeticExceptionTest() local
276 failures++; in arithmeticExceptionTest()
DSquareRootTests.java86 int failures = 0; in oneDigitTests() local
120 int failures = 0; in twoDigitTests() local
259 int failures = 0; in almostFourRoundingDown() local
281 int failures = 0;
299 int failures = 0;
325 int failures = 0;
349 int failures = 0;
/libcore/ojluni/src/test/java/util/Properties/
DLoadAndStoreNPE.java40 int failures = 0; in main() local
46 failures++; in main()
53 failures++; in main()
60 failures++; in main()
67 failures++; in main()
72 if (failures != 0) { in main()
74 + failures + " errors!"); in main()
/libcore/ojluni/src/test/java/util/ArrayList/
DSubListModCount.java38 int failures = 0; in main() local
44 failures++; in main()
51 failures++; in main()
57 failures++; in main()
63 failures++; in main()
67 if (failures > 0) { in main()
68 throw new AssertionError(failures + " tests failed"); in main()
/libcore/ojluni/src/test/java/util/HashSet/
DSerialization.java85 int failures = 0; in main() local
95 failures++; in main()
98 failures++; in main()
105 failures++; in main()
109 if (failures != 0) { in main()
111 failures+" failures!"); in main()
/libcore/ojluni/src/test/java/lang/StrictMath/
DMultiplicationTests.java83 int failures = 0; in testMultiplyHigh() local
106 failures++; in testMultiplyHigh()
111 Assert.assertEquals(failures, 0); in testMultiplyHigh()
DCubeRootTests.java69 int failures = 0; in testCubeRoot() local
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java274 StringBuilder failures = new StringBuilder(); in checkDisplayNames() local
285 failures.append(String.format("\n%20s: LD='%s' LS='%s'!", in checkDisplayNames()
290 failures.append(String.format("\n%20s: SD='%s' SS='%s'!", in checkDisplayNames()
298 failures.append(String.format("\n%20s: SS='%s' LD='%s'!", in checkDisplayNames()
302 failures.append(String.format("\n%20s: LS='%s' SD='%s'!", in checkDisplayNames()
308 failures.append(String.format("\n%20s: LD='%s' SD='%s'!", in checkDisplayNames()
318 failures.append(String.format("\n%s: LD %s", id, longDst)); in checkDisplayNames()
321 failures.append(String.format("\n%s: LS %s", id, longStd)); in checkDisplayNames()
324 failures.append(String.format("\n%s: SD %s", id, shortDst)); in checkDisplayNames()
327 failures.append(String.format("\n%s: SS %s", id, shortStd)); in checkDisplayNames()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/charset/
DStandardCharsetsEncoderTest.java82 List<String> failures = new ArrayList<>(); in testCharset() local
94 failures.add("Expected=" + expectedInfo + ", actual=" + actualInfo); in testCharset()
98 if (!failures.isEmpty()) { in testCharset()
99 fail("Failures:\n" + failures); in testCharset()
/libcore/
DOWNERS7 # The default assignee for test failures and possibly other bugs.
/libcore/ojluni/src/test/java/nio/file/Path/
DUriImportExport.java38 static int failures = 0; field in UriImportExport
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDecimalFormatTest.java2600 private List<AssertionFailedError> failures = new ArrayList<AssertionFailedError>(); field in DecimalFormatTest.FormatTester
2607 failures.add(e); in format()
2616 failures.add(e); in format()
2621 if (failures.isEmpty()) { in throwFailures()
2624 if (failures.size() == 1) { in throwFailures()
2625 throw failures.get(0); in throwFailures()
2628 for (AssertionFailedError failure : failures) { in throwFailures()
/libcore/expectations/
Dknownfailures.txt3 * TODO: Rename this file to account for the fact that it has both tags and known failures
1310 description: "Known failures in URLTest and URLDecoderTest",
1668 a security manager. This suppresses all of these failures.",
/libcore/support/src/test/java/tests/resources/
Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/ ...