mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-28 07:12:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			328 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			328 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);
 | |
| });
 | 
