Skip to content

Commit 8ceebc1

Browse files
committed
Implement basic unit testing, and fix test failures
1 parent 53c2a82 commit 8ceebc1

File tree

3 files changed

+631
-2
lines changed

3 files changed

+631
-2
lines changed

.idea/misc.xml

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/io/github/ad417/BreakInfinity/BigDouble.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ public BigDouble pow(double power) {
16781678
Math.abs(power) < 9007199254740991L
16791679
&& Math.floor(power) == power;
16801680

1681-
if (power < 0 && !powerIsInteger) return NaN;
1681+
if (mantissa < 0 && !powerIsInteger) return NaN;
16821682

16831683
// FAIL-FAST: 10 ^ x can be computed quickly.
16841684
boolean is10 = exponent == 1 && mantissa - 1 < Double.MIN_VALUE;

0 commit comments

Comments
 (0)