mirror of
				https://github.com/DanilaFe/abacus
				synced 2025-11-03 18:33:41 -08:00 
			
		
		
		
	Adjust unit tests. Set the number of significant figures in the output to 50.
This commit is contained in:
		
							parent
							
								
									b9c928d66f
								
							
						
					
					
						commit
						c0d40b3cd0
					
				@ -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.
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								src/test/java/org/nwapw/abacus/tests/CalculationTests.java
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										4
									
								
								src/test/java/org/nwapw/abacus/tests/CalculationTests.java
									
									
									
									
									
										
										
										Normal file → Executable 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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user