mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-25 04:32:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			247 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			247 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| test("basic functionality", () => {
 | |
|     expect(Math.log1p).toHaveLength(1);
 | |
| 
 | |
|     expect(Math.log1p(-2)).toBeNaN();
 | |
|     expect(Math.log1p(-1)).toBe(-Infinity);
 | |
|     expect(Math.log1p(0)).toBe(0);
 | |
|     expect(Math.log1p(1)).toBeCloseTo(0.693147);
 | |
| });
 | 
