1 2 static $type$[] [[TEST]]($type$[] a, $type$[] b, int origin, int part, int idx) { 3 $type$[] res = new $type$[SPECIES.length()]; 4 for (int i = 0, j = 0; i < SPECIES.length(); i++){ 5 if (part == 0) { 6 if (i < origin) 7 res[i] = b[idx+i]; 8 else { 9 res[i] = a[idx+j]; 10 j++; 11 } 12 } else if (part == 1) { 13 if (i < origin) 14 res[i] = a[idx+SPECIES.length()-origin+i]; 15 else { 16 res[i] = b[idx+origin+j]; 17 j++; 18 } 19 } 20 } 21 return res; 22 } 23 24 @Test(dataProvider = "$type$BinaryOpProvider") 25 static void [[TEST]]$vectorteststype$Binary(IntFunction<$type$[]> fa, IntFunction<$type$[]> fb) { 26 [[KERNEL]] 27 assertArraysEquals(r, a, b, origin, part, $vectorteststype$::[[TEST]]); 28 }