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