< prev index next >

test/jdk/jdk/incubator/vector/templates/Unit-Single-op.template

Print this page


 1     static $type$[] [[TEST]]($type$ val) {
 2         $type$[] res = new $type$[SPECIES.length()];
 3         res[0] = val;
 4 
 5         return res;
 6     }
 7 
 8     @Test(dataProvider = "$type$UnaryOpProvider")
 9     static void [[TEST]]$vectorteststype$(IntFunction<$type$[]> fa) {
10 [[KERNEL]]
11         assertArraysEquals(r, a, $vectorteststype$::[[TEST]]);
12     }

 1 
 2     static $type$[] [[TEST]]($type$ val) {
 3         $type$[] res = new $type$[SPECIES.length()];
 4         res[0] = val;
 5 
 6         return res;
 7     }
 8 
 9     @Test(dataProvider = "$type$UnaryOpProvider")
10     static void [[TEST]]$vectorteststype$(IntFunction<$type$[]> fa) {
11 [[KERNEL]]
12         assertArraysEquals(r, a, $vectorteststype$::[[TEST]]);
13     }
< prev index next >