svoid test_intersectSortedIntArrays_ofs_optimized2() { Random random = repeatableRandomizer(); repeat 1000 { int[] a = randomSortedIntArray(10); int[] b = randomSortedIntArray(10); int ofs = random(2); assertEquals( asList(intersectSortedIntArrays_ofs(a, b, ofs)), asList(intersectSortedIntArrays_ofs_optimized2(a, b, ofs))); } }