jqwik pairs of sorted array with some element of it
问题 Following code aims to generate random sorted array, and key as one element of that array. But I do not know the issue, the keys are not in the array? @Provide Arbitrary<Map<Integer, Integer[]>> llstPairs() { // sortedArrayGenerator is generattor that return Arbitrary<Integer[]> sorted values // and it works fine Arbitrary<Integer[]> vals = sortedArrayGenerator(); Integer[] sample = vals.sample(); Arbitrary<Integer> key = Arbitraries.samples(sample); return Arbitraries.maps(key,vals); } Why