diff options
Diffstat (limited to 'ext/gmp/tests/gmp_fact.phpt')
-rw-r--r-- | ext/gmp/tests/gmp_fact.phpt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/ext/gmp/tests/gmp_fact.phpt b/ext/gmp/tests/gmp_fact.phpt index 3829599788..81f16019f0 100644 --- a/ext/gmp/tests/gmp_fact.phpt +++ b/ext/gmp/tests/gmp_fact.phpt @@ -23,12 +23,7 @@ try { echo $e->getMessage() . \PHP_EOL; } -try { - var_dump(gmp_strval(gmp_fact(1.1))); -} catch (\TypeError $e) { - echo $e->getMessage() . \PHP_EOL; -} - +var_dump(gmp_strval(gmp_fact(1.1))); var_dump(gmp_strval(gmp_fact(20))); var_dump(gmp_strval(gmp_fact("50"))); var_dump(gmp_strval(gmp_fact("10"))); @@ -57,12 +52,12 @@ gmp_fact(): Argument #1 ($a) is not an integer string string(1) "1" gmp_fact(): Argument #1 ($a) must be greater than or equal to 0 gmp_fact(): Argument #1 ($a) must be greater than or equal to 0 -gmp_fact(): Argument #1 ($a) must be of type GMP|string|int|bool, float given +string(1) "1" string(19) "2432902008176640000" string(65) "30414093201713378043612608166064768844377641568960512000000000000" string(7) "3628800" string(1) "1" string(9) "479001600" gmp_fact(): Argument #1 ($a) must be greater than or equal to 0 -gmp_fact(): Argument #1 ($a) must be of type GMP|string|int|bool, array given +gmp_fact(): Argument #1 ($a) must be of type GMP|string|int, array given Done |