Home
last modified time | relevance | path

Searched refs:inc (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DRangeTest.java71 int[] inc = IntStream.range(start, end).toArray(); in testIntRange() local
72 assertEquals(inc.length, size); in testIntRange()
73 assertTrue(Arrays.equals(exp, inc)); in testIntRange()
91 int[] inc = IntStream.rangeClosed(start, end).toArray(); in testIntRange() local
92 assertEquals(inc.length, size); in testIntRange()
93 assertTrue(Arrays.equals(exp, inc)); in testIntRange()
102 int[] inc = IntStream.rangeClosed(Integer.MAX_VALUE - 1, Integer.MAX_VALUE).toArray(); in testIntRange() local
103 assertEquals(2, inc.length); in testIntRange()
104 assertEquals(Integer.MAX_VALUE - 1, inc[0]); in testIntRange()
105 assertEquals(Integer.MAX_VALUE, inc[1]); in testIntRange()
[all …]
/libcore/ojluni/src/test/java/lang/Math/
DExactArithTests.java124 int inc = Math.incrementExact(x); in testIntegerExact() local
127 … fail("FAIL: int Math.incrementExact(" + x + ") = " + inc + "; expected Arithmetic exception"); in testIntegerExact()
128 } else if (inc != inc2) { in testIntegerExact()
129 fail("FAIL: long Math.incrementExact(" + x + ") = " + inc + "; expected: " + inc2); in testIntegerExact()
267 long inc = Math.incrementExact(x); in testLongExact() local
268 checkResult("long Math.incrementExact", x, 1L, inc, resultBig); in testLongExact()
/libcore/jsr166-tests/src/test/java/jsr166/
DCompletableFutureTest.java405 static Integer inc(Integer x) {
425 return value = inc(x);
534 assertTrue(f.complete(inc(x)));
1074 return inc(v1); in testHandle_normalCompletion()
1078 checkCompletedNormally(g, inc(v1)); in testHandle_normalCompletion()
1414 checkCompletedNormally(h0, inc(v1)); in testThenApply_normalCompletion()
1415 checkCompletedNormally(h1, inc(v1)); in testThenApply_normalCompletion()
1416 checkCompletedNormally(h2, inc(v1)); in testThenApply_normalCompletion()
1417 checkCompletedNormally(h3, inc(v1)); in testThenApply_normalCompletion()
1419 for (IncFunction r : rs) r.assertValue(inc(v1)); in testThenApply_normalCompletion()
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestCertUtils.java753 private static boolean inc(int[] num, int base) { in inc() method in TestCertUtils.UniGen
804 if (inc(counts, datas.length)) { in genNames()