You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/12/20 17:58:04 UTC
[commons-numbers] 13/30: Drop exact log10 test. The method of
computation cannot be assumed.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 12c0b57ccda1269ae020636051adc8ca9614adfc
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Dec 19 17:32:54 2019 +0000
Drop exact log10 test. The method of computation cannot be assumed.
---
.../src/test/java/org/apache/commons/numbers/complex/ComplexTest.java | 2 --
1 file changed, 2 deletions(-)
diff --git a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
index d5f54cd..d4189b5 100644
--- a/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
+++ b/commons-numbers-complex/src/test/java/org/apache/commons/numbers/complex/ComplexTest.java
@@ -2003,8 +2003,6 @@ public class ComplexTest {
// This is prone to floating-point error so use a delta
Assertions.assertEquals(lnz.getReal() / ln10, log10z.getReal(), 1e-12, "real");
// This test should be exact
- final double abs = z.abs();
- Assertions.assertEquals(Math.log10(abs), log10z.getReal(), "real");
Assertions.assertEquals(lnz.getImaginary(), log10z.getImaginary(), "imag");
}
}