Skip to content

Commit

Permalink
fix no error thrown in testMegaJson
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed May 17, 2019
1 parent 9535639 commit 3ad2258
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/test/java/com/esaulpaugh/headlong/abi/ABIJsonTest2.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private boolean test() {
for ( ; i < encodingTokens.length; i++) {
System.out.println("----------------------------------------------------------------" + " " + encodingTokens[i]);
}
return false;
throw ae;
}
}

Expand Down Expand Up @@ -201,18 +201,8 @@ private static String completeTupleTypeString(StringBuilder canonicalTupleType)

@Test
public void testMegaJson() throws ParseException {
int i = 0;
int failed = 0;
for (JsonElement e : TEST_CASES) {
TestCase t = new TestCase(e.getAsJsonObject());
if(!t.test()) {
System.out.println("failure @ " + i + " " + t.name);
failed++;
} else {
System.out.println("success @ " + i);
}
i++;
new TestCase(e.getAsJsonObject()).test();
}
System.out.println("failed = " + failed + "/" + i);
}
}

0 comments on commit 3ad2258

Please sign in to comment.