Skip to content

Commit

Permalink
enable
Browse files Browse the repository at this point in the history
  • Loading branch information
offamitkumar committed Oct 28, 2024
1 parent 7c6820c commit b5a5bdd
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ public static void main(String[] args) {
static private void runAndVerify(Runnable test, int offset) {
System.arraycopy(verifyLongArray, 0, longArray, 0, longArray.length);
Arrays.fill(byteArray, (byte)0);
// test.run();
// int i;
// for (i = 0; i < Math.max(offset, 0); i++) {
// if (byteArray[i] != 0) {
// throw new RuntimeException("Incorrect result at " + i + " " + byteArray[i] + " != 0");
// }
// }
test.run();
int i;
for (i = 0; i < Math.max(offset, 0); i++) {
if (byteArray[i] != 0) {
throw new RuntimeException("Incorrect result at " + i + " " + byteArray[i] + " != 0");
}
}
// for (; i < Math.min(byteArray.length + offset, byteArray.length); i++) {
// if (byteArray[i] != verifyByteArray[i - offset]) {
// throw new RuntimeException("Incorrect result at " + i + " " + byteArray[i] + " != " + verifyByteArray[i-offset]);
Expand Down

0 comments on commit b5a5bdd

Please sign in to comment.