Annotation of embedaddon/php/ext/standard/tests/math/decbin_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test expm1() - Error conditions
                      3: --INI--
                      4: precision=14
                      5: --SKIPIF--
                      6: <?php
                      7:        function_exists('expm1') or die('skip expm1() is not supported in this build.');
                      8: ?>
                      9: --FILE--
                     10: <?php
                     11: /* Prototype  : float expm1  ( float $arg  )
                     12:  * Description: Returns exp(number) - 1, computed in a way that is accurate even 
                     13:  *              when the value of number is close to zero.
                     14:  * Source code: ext/standard/math.c
                     15:  */
                     16: 
                     17: echo "*** Testing expm1() : error conditions ***\n";
                     18: 
                     19: echo "\n-- Testing expm1() function with less than expected no. of arguments --\n";
                     20: expm1();
                     21: echo "\n-- Testing expm1() function with more than expected no. of arguments --\n";
                     22: expm1(23,true);
                     23: 
                     24: ?>
                     25: ===Done===
                     26: --EXPECTF--
                     27: *** Testing expm1() : error conditions ***
                     28: 
                     29: -- Testing expm1() function with less than expected no. of arguments --
                     30: 
                     31: Warning: expm1() expects exactly 1 parameter, 0 given in %s on line %d
                     32: 
                     33: -- Testing expm1() function with more than expected no. of arguments --
                     34: 
                     35: Warning: expm1() expects exactly 1 parameter, 2 given in %s on line %d
                     36: ===Done===
                     37: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>