Searched refs:failures (Results 1 – 7 of 7) sorted by relevance
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 37 int failures = 0; in main() local 39 failures += testZeroAverageOfNonEmptyStream(); in main() 40 failures += testForCompenstation(); in main() 41 failures += testNonfiniteSum(); in main() 43 if (failures > 0) { in main() 44 throw new RuntimeException("Found " + failures + " numerical failure(s)."); in main() 62 int failures = 0; in testForCompenstation() local 83 failures += compareUlpDifference(expectedSum, stats.getSum(), 3); in testForCompenstation() 84 failures += compareUlpDifference(expectedAvg, stats.getAverage(), 3); in testForCompenstation() 86 failures += compareUlpDifference(expectedSum, in testForCompenstation() [all …]
|
/libcore/dalvik/test-rules/src/test/java/libcore/dalvik/system/ |
D | CloseGuardSupportTest.java | 38 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/lang/StrictMath/ |
D | MultiplicationTests.java | 80 int failures = 0; in testMultiplyHigh() local 103 failures++; in testMultiplyHigh() 108 Assert.assertEquals(failures, 0); in testMultiplyHigh()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TimeZoneTest.java | 262 StringBuilder failures = new StringBuilder(); in checkDisplayNames() local 273 failures.append(String.format("\n%20s: LD='%s' LS='%s'!", in checkDisplayNames() 278 failures.append(String.format("\n%20s: SD='%s' SS='%s'!", in checkDisplayNames() 286 failures.append(String.format("\n%20s: SS='%s' LD='%s'!", in checkDisplayNames() 290 failures.append(String.format("\n%20s: LS='%s' SD='%s'!", in checkDisplayNames() 296 failures.append(String.format("\n%20s: LD='%s' SD='%s'!", in checkDisplayNames() 306 failures.append(String.format("\n%s: LD %s", id, longDst)); in checkDisplayNames() 309 failures.append(String.format("\n%s: LS %s", id, longStd)); in checkDisplayNames() 312 failures.append(String.format("\n%s: SD %s", id, shortDst)); in checkDisplayNames() 315 failures.append(String.format("\n%s: SS %s", id, shortStd)); in checkDisplayNames() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
D | StandardCharsetsEncoderTest.java | 82 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DecimalFormatTest.java | 2584 private List<AssertionFailedError> failures = new ArrayList<AssertionFailedError>(); field in DecimalFormatTest.FormatTester 2591 failures.add(e); in format() 2600 failures.add(e); in format() 2605 if (failures.isEmpty()) { in throwFailures() 2608 if (failures.size() == 1) { in throwFailures() 2609 throw failures.get(0); in throwFailures() 2612 for (AssertionFailedError failure : failures) { in throwFailures()
|
/libcore/expectations/ |
D | knownfailures.txt | 3 * 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.",
|