mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:02:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			357 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			357 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| test("basic functionality", () => {
 | |
|     const nan = undefined + 1;
 | |
| 
 | |
|     expect(nan + "").toBe("NaN");
 | |
|     expect(NaN + "").toBe("NaN");
 | |
|     expect(nan !== nan).toBeTrue();
 | |
|     expect(NaN !== NaN).toBeTrue();
 | |
|     expect(nan).toBeNaN();
 | |
|     expect(NaN).toBeNaN();
 | |
|     expect(0).not.toBeNaN();
 | |
|     expect(!!nan).toBeFalse();
 | |
|     expect(!!NaN).toBeFalse();
 | |
| });
 | 
