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