Searched refs:stats (Results 1 – 2 of 2) sorted by relevance
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | SummaryStatisticsTest.java | 52 for (IntSummaryStatistics stats : instances) { in testIntStatistics() 53 assertEquals(stats.getCount(), 1000); in testIntStatistics() 54 assertEquals(stats.getSum(), countTo(1000).stream().mapToInt(i -> i).sum()); in testIntStatistics() 55 assertEquals(stats.getMax(), 1000); in testIntStatistics() 56 assertEquals(stats.getMin(), 1); in testIntStatistics() 67 for (LongSummaryStatistics stats : instances) { in testLongStatistics() 68 assertEquals(stats.getCount(), 1000); in testLongStatistics() 69 assertEquals(stats.getSum(), (long) countTo(1000).stream().mapToInt(i -> i).sum()); in testLongStatistics() 70 assertEquals(stats.getMax(), 1000L); in testLongStatistics() 71 assertEquals(stats.getMin(), 1L); in testLongStatistics() [all …]
|
/libcore/ojluni/src/test/java/util/stream/ |
D | TestDoubleSumAverage.java | 79 DoubleSummaryStatistics stats = ds.get().collect(DoubleSummaryStatistics::new, in testForCompenstation() local 83 failures += compareUlpDifference(expectedSum, stats.getSum(), 3); in testForCompenstation() 84 failures += compareUlpDifference(expectedAvg, stats.getAverage(), 3); in testForCompenstation() 128 DoubleSummaryStatistics stats = ds.get().collect(DoubleSummaryStatistics::new, in testNonfiniteSum() local 132 failures += compareUlpDifference(expected, stats.getSum(), 0); in testNonfiniteSum() 133 failures += compareUlpDifference(expected, stats.getAverage(), 0); in testNonfiniteSum()
|