mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:32:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			408 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			408 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| test("basic functionality", () => {
 | |
|     expect(Math.atanh).toHaveLength(1);
 | |
| 
 | |
|     expect(Math.atanh(-2)).toBeNaN();
 | |
|     expect(Math.atanh(2)).toBeNaN();
 | |
|     expect(Math.atanh(-1)).toBe(-Infinity);
 | |
|     expect(Math.atanh(0)).toBe(0);
 | |
|     expect(Math.atanh(0.5)).toBeCloseTo(0.549306);
 | |
|     expect(Math.atanh(1)).toBe(Infinity);
 | |
|     expect(Math.atanh(NaN)).toBe(NaN);
 | |
|     expect(Math.atanh(-0.0)).toBe(-0.0);
 | |
| });
 | 
