mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-03 23:00:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			463 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			463 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
load("test-common.js");
 | 
						|
 | 
						|
try {
 | 
						|
    assert(isNaN(Math.cbrt(NaN)));
 | 
						|
    // FIXME: assert(Math.cbrt(-1) === -1);
 | 
						|
    assert(Math.cbrt(-0) === -0);
 | 
						|
    // FIXME: assert(Math.cbrt(-Infinity) === -Infinity);
 | 
						|
    // FIXME: assert(Math.cbrt(1) === 1);
 | 
						|
    // FIXME: assert(Math.cbrt(Infinity) === Infinity);
 | 
						|
    assert(Math.cbrt(null) === 0);
 | 
						|
    // FIXME: assert(isClose(Math.cbrt(2), 1.259921));
 | 
						|
 | 
						|
    console.log("PASS");
 | 
						|
} catch (e) {
 | 
						|
    console.log("FAIL: " + e);
 | 
						|
}
 |