Skip to content

Commit

Permalink
Fix from possible IllegalArgumentException, re #4
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Jun 9, 2020
1 parent 85de8b4 commit c678041
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/test/java/org/libj/math/Operation.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ final void print(final int count, final long[] time, final BigDecimal[] errors,
perf = color(Strings.padLeft(timePerf > 0 ? "+" + perf : perf, 7) + "%", timePerf <= 0);

final String f = Strings.padLeft(label + "(" + arg.getSimpleName() + ")", 18);
final String l = Strings.padRight("LongDecimal=" + timeLongDecimal, 16);
final String l = Strings.padRight("LongDecimal=" + timeLongDecimal, 17);
final String b = Strings.padRight("BigDecimal=" + timeBigDecimal, 16);
final String c = Strings.padRight(String.valueOf(count), 7);
final String e = Strings.padRight(epsilonFormatter.format(error), 5);
Expand Down
5 changes: 0 additions & 5 deletions src/test/java/org/libj/math/SafeMathTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ private static double d10() {
return (Math.random() < 0.5 ? -1 : 1) * (random.nextDouble() + 1);
}

private static double d1() {
final double d = random.nextDouble();
return (Math.random() < 0.5 ? -1 : 1) * (d == 0 ? 0.1 + d : d);
}

private static double d0() {
return (Math.random() < 0.5 ? -1 : 1) * random.nextDouble();
}
Expand Down

0 comments on commit c678041

Please sign in to comment.