mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-27 14:02:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			334 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			334 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| test("basic functionality", () => {
 | |
|     expect(Math.tanh).toHaveLength(1);
 | |
| 
 | |
|     expect(Math.tanh(0)).toBe(0);
 | |
|     expect(Math.tanh(Infinity)).toBe(1);
 | |
|     expect(Math.tanh(-Infinity)).toBe(-1);
 | |
|     expect(Math.tanh(1)).toBeCloseTo(0.7615941559557649);
 | |
|     expect(Math.tanh(NaN)).toBe(NaN);
 | |
|     expect(Math.tanh(-0.0)).toBe(-0.0);
 | |
| });
 | 
