Searched refs:fold (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/test/java/lang/invoke/ |
D | FoldTest.java | 55 MethodHandle fold = MethodHandles.foldArguments(Fold.MH_multer, 0, Fold.MH_adder); in testFold0a() local 56 assertEquals(Fold.MT_folded1, fold.type()); in testFold0a() 57 assertEquals(720, (int) fold.invoke(3, 4, 5)); in testFold0a() 63 MethodHandle fold = MethodHandles.foldArguments(Fold.MH_multer, 1, Fold.MH_adder1); in testFold1a() local 64 assertEquals(Fold.MT_folded1, fold.type()); in testFold1a() 65 assertEquals(540, (int) fold.invoke(3, 4, 5)); in testFold1a() 71 MethodHandle fold = MethodHandles.foldArguments(Fold.MH_str, 0, Fold.MH_comb); in testFold0b() local 72 assertEquals(Fold.MT_folded2, fold.type()); in testFold0b() 73 assertEquals(23, (int) fold.invoke("true", true, 23)); in testFold0b() 79 MethodHandle fold = MethodHandles.foldArguments(Fold.MH_str, 1, Fold.MH_comb2); in testFold1b() local [all …]
|
D | RicochetTest.java | 388 for (int fold = 0; fold <= len; fold++) { in testReturns() 399 for (int j = 0; j < fold; j++) { in testReturns()
|
D | MethodHandlesGeneralTest.java | 1272 … int pos, int fold, // position and length of the folded arguments in testFoldOrCollectArguments() argument 1280 List<Class<?>> combineArgTypes = argTypes.subList(pos, pos + fold); in testFoldOrCollectArguments() 1283 targetArgTypes.subList(pos, pos + fold).clear(); in testFoldOrCollectArguments() 1298 List<Object> argsToFold = expectedList.subList(pos, pos + fold); in testFoldOrCollectArguments() 1311 …System.out.println("*** fail at n/p/f = "+nargs+"/"+pos+"/"+fold+": "+argsToPass+" => "+result+" !… in testFoldOrCollectArguments()
|