1
0
mirror of https://github.com/DanilaFe/abacus synced 2024-12-22 15:30:09 -08:00

Adjust unit tests. Set the number of significant figures in the output to 50.

This commit is contained in:
Arthur Drobot 2017-08-08 09:27:10 -07:00
parent 68fbcd2d7c
commit 4cf4ba98a8
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ public class PreciseNumber extends NumberInterface {
/**
* MathContext that is used when rounding a number prior to output.
*/
private static MathContext outputContext = new MathContext(30);
private static MathContext outputContext = new MathContext(50);
/**
* MathContext that is actually used in calculations.

View File

@ -88,8 +88,8 @@ public class CalculationTests {
public void testExp(){
testOutput("exp0", "exp(0)", "1");
testOutput("exp1", "exp(1)", "2.718281828459045235360287471352662497757247");
testOutput("exp300", "exp(300)", "19424263952412559365842088360176992193662086");
testOutput("exp300", "exp(300)", "19424263952412559365842088360176992193662086");
testOutput("exp300", "exp(300)", "1.9424263952412559365842088360176992193662086");
testOutput("exp(-500)", "exp((500)`)", "7.1245764067412855315491573771227552469277568");
}
@Test