svoid test_intersectSortedIntArrays_ofs_optimized2() { Random random = repeatableRandomizer(); repeat 1000 { int[] a = randomSortedIntArray(10, random); int[] b = randomSortedIntArray(10, random); int ofs = 0; //random(2, random); print(asList(a) + " / " + asList(b)); assertEqualsVerbose( asList(intersectSortedIntArrays_ofs(a, b, ofs)), asList(intersectSortedIntArrays_ofs_optimized2(a, b, ofs))); } }