Lines Matching refs:assert
15 assert( isNaN (Math.log(NaN)) );
16 assert( isNaN (Math.log (-1)) );
17 assert( isNaN (Math.log (-Infinity)) );
19 assert( Math.log (0) === -Infinity );
20 assert( Math.log (1) === 0 );
21 assert( Math.log (Infinity) === Infinity );
22 assert( Math.log (2) >= Math.LN2 * 0.999999 );
23 assert( Math.log (2) <= Math.LN2 * 1.000001 );
26 assert( very_close_to_1_but_greater > 1.0 );
28 assert( Math.log (very_close_to_1_but_greater) >= 0.0 );
29 assert( Math.log (very_close_to_1_but_greater) <= 0.000001 );
32 assert( very_close_to_1_but_less < 1.0 );
34 assert( Math.log (very_close_to_1_but_less) <= 0.0 );
35 assert( Math.log (very_close_to_1_but_less) >= -0.00001 );
37 assert( Math.log (2.7182818284590452354) >= 0.999999 );
38 assert( Math.log (2.7182818284590452354) <= 1.000001 );
40 assert( Math.log (0.000000001) <= 0.999999 * (-20.7232658369) );
41 assert( Math.log (0.000000001) >= 1.000001 * (-20.7232658369) );
43 assert( Math.log (1.0e+38) >= 0.999999 * 87.4982335338 );
44 assert( Math.log (1.0e+38) <= 1.000001 * 87.4982335338 );