示例#1
0
  public void testGetSet_short() {
    testSetup(Element.I16(mRS));
    short tmp[] = randomShortArray(gCount);
    short tmp2[] = new short[gCount];
    script.forEach_copy1D_short(walkAlloc);
    verify(tmp, tmp2, out1DAlloc, "Data mismatch short: ", 1);
    scriptRelaxed.forEach_copy1D_short(walkAlloc);
    verify(tmp, tmp2, out1DAlloc, "Data mismatch relaxed short: ", 1);

    script.forEach_copy2D_short(walkAlloc);
    verify(tmp, tmp2, out2DAlloc, "Data mismatch short: ", 1);
    scriptRelaxed.forEach_copy2D_short(walkAlloc);
    verify(tmp, tmp2, out2DAlloc, "Data mismatch relaxed short: ", 1);

    script.forEach_copy3D_short(walkAlloc);
    verify(tmp, tmp2, out3DAlloc, "Data mismatch short: ", 1);
    scriptRelaxed.forEach_copy3D_short(walkAlloc);
    verify(tmp, tmp2, out3DAlloc, "Data mismatch relaxed short: ", 1);
  }