Revive the project
This commit is contained in:
@@ -680,7 +680,7 @@ public class ExpressionTest {
|
||||
|
||||
private void testSinEqualsToSinh(@Nonnull MathEngine mathEngine, @Nonnull Double x, @Nullable String expected) throws ParseException {
|
||||
if (expected == null) {
|
||||
assertEquals(mathEngine.evaluate("sinh(i*" + x + ")/i"), mathEngine.evaluate("sin(" + x + ")"));
|
||||
assertEquals(mathEngine.simplify(mathEngine.evaluate("sinh(i*" + x + ")/i")), mathEngine.evaluate("sin(" + x + ")"));
|
||||
// Assert.assertEquals(mathEngine.evaluate("exp("+x+")-sinh(" + x + ")"), mathEngine.evaluate("cosh(" + x + ")"));
|
||||
} else {
|
||||
assertEquals(expected, mathEngine.evaluate("sin(" + x + ")"));
|
||||
|
@@ -129,7 +129,7 @@ public class NumberFormatterTest {
|
||||
assertEquals("5000000000000000000", numberFormatter.format(5000000000000000001d));
|
||||
assertEquals("5000000000000000001", numberFormatter.format(BigInteger.valueOf(5000000000000000001L)));
|
||||
|
||||
assertEquals("5999999999999994900", numberFormatter.format(5999999999999994999d));
|
||||
assertEquals("5999999999999995000", numberFormatter.format(5999999999999994999d));
|
||||
assertEquals("5999999999999994999", numberFormatter.format(BigInteger.valueOf(5999999999999994999L)));
|
||||
|
||||
assertEquals("5E19", numberFormatter.format(50000000000000000000d));
|
||||
@@ -202,4 +202,4 @@ public class NumberFormatterTest {
|
||||
private static double makeDouble(int integerPart, int fractionalPart) {
|
||||
return Double.parseDouble(integerPart + "." + fractionalPart);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user