mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-28 11:02:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			477 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			477 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| test("basic functionality", () => {
 | |
|     expect(Math.log10).toHaveLength(1);
 | |
| 
 | |
|     expect(Math.log10(2)).toBeCloseTo(0.3010299956639812);
 | |
|     expect(Math.log10(1)).toBe(0);
 | |
|     expect(Math.log10(0)).toBe(-Infinity);
 | |
|     expect(Math.log10(-2)).toBe(NaN);
 | |
|     expect(Math.log10(100000)).toBe(5);
 | |
|     expect(Math.log10(NaN)).toBe(NaN);
 | |
|     expect(Math.log10(Number.POSITIVE_INFINITY)).toBe(Number.POSITIVE_INFINITY);
 | |
|     expect(Math.log10(-0.0)).toBe(Number.NEGATIVE_INFINITY);
 | |
| });
 | 
