mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-25 09:30:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			445 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			445 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| test("basic functionality", () => {
 | |
|     expect(Math.acosh).toHaveLength(1);
 | |
| 
 | |
|     expect(Math.acosh(-1)).toBeNaN();
 | |
|     expect(Math.acosh(0)).toBeNaN();
 | |
|     expect(Math.acosh(0.5)).toBeNaN();
 | |
|     expect(Math.acosh(1)).toBeCloseTo(0);
 | |
|     expect(Math.acosh(2)).toBeCloseTo(1.316957);
 | |
|     expect(Math.acosh(NaN)).toBe(NaN);
 | |
|     expect(Math.acosh(Number.POSITIVE_INFINITY)).toBe(Number.POSITIVE_INFINITY);
 | |
|     expect(Math.acosh(1.0)).toBe(0.0);
 | |
| });
 |