Esempio n. 1
0
  public void testGetSet_ushort3() {
    testSetup(Element.U16_3(mRS));
    short tmp[] = randomShortArray(gCount);
    short tmp2[] = new short[gCount];
    script.forEach_copy1D_ushort3(walkAlloc);
    verify(tmp, tmp2, out1DAlloc, "Data mismatch ushort3: ", 3);
    scriptRelaxed.forEach_copy1D_ushort3(walkAlloc);
    verify(tmp, tmp2, out1DAlloc, "Data mismatch relaxed ushort3: ", 3);

    script.forEach_copy2D_ushort3(walkAlloc);
    verify(tmp, tmp2, out2DAlloc, "Data mismatch ushort3: ", 3);
    scriptRelaxed.forEach_copy2D_ushort3(walkAlloc);
    verify(tmp, tmp2, out2DAlloc, "Data mismatch relaxed ushort3: ", 3);

    script.forEach_copy3D_ushort3(walkAlloc);
    verify(tmp, tmp2, out3DAlloc, "Data mismatch ushort3: ", 3);
    scriptRelaxed.forEach_copy3D_ushort3(walkAlloc);
    verify(tmp, tmp2, out3DAlloc, "Data mismatch relaxed ushort3: ", 3);
  }