com php-src: Cleanup gmp_sqrtrem() test: ext/gmp/te sts/gmp_sqrtrem.phpt

From: Date: Mon, 25 Jul 2016 20:07:56 +0000
Subject: com php-src: Cleanup gmp_sqrtrem() test: ext/gmp/te sts/gmp_sqrtrem.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-93395@lists.php.net to get a copy of this message
Commit: 5d0ae32c35fd0acb67eb50984e26a113a0acd64f Author: Nikita Popov <nikic@php.net> Mon, 25 Jul 2016 22:07:56 +0200 Parents: a166d9677b5dfd2ab96c538bf176fd34b530e826 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5d0ae32c35fd0acb67eb50984e26a113a0acd64f Log: Cleanup gmp_sqrtrem() test Changed paths: M ext/gmp/tests/gmp_sqrtrem.phpt Diff: diff --git a/ext/gmp/tests/gmp_sqrtrem.phpt b/ext/gmp/tests/gmp_sqrtrem.phpt index 2fca463..d30bb2b 100644 --- a/ext/gmp/tests/gmp_sqrtrem.phpt +++ b/ext/gmp/tests/gmp_sqrtrem.phpt @@ -6,8 +6,7 @@ gmp_sqrtrem() basic tests <?php $r = gmp_sqrtrem(-1); -var_dump(gmp_strval($r[0])); -var_dump(gmp_strval($r[1])); +var_dump($r); $r = gmp_sqrtrem("0"); var_dump(gmp_strval($r[0])); @@ -44,8 +43,7 @@ var_dump(gmp_strval($r[1])); $n = gmp_init(-1); $r = gmp_sqrtrem($n); -var_dump(gmp_strval($r[0])); -var_dump(gmp_strval($r[1])); +var_dump($r); $n = gmp_init(1000001); $r = gmp_sqrtrem($n); @@ -59,11 +57,6 @@ echo "Done\n"; ?> --EXPECTF-- Warning: gmp_sqrtrem(): Number has to be greater than or equal to 0 in %s on line %d - -Warning: gmp_strval(): Unable to convert variable to GMP - wrong type in %s on line %d -bool(false) - -Warning: gmp_strval(): Unable to convert variable to GMP - wrong type in %s on line %d bool(false) string(1) "0" string(1) "0" @@ -83,11 +76,6 @@ string(4) "1000" string(1) "1" Warning: gmp_sqrtrem(): Number has to be greater than or equal to 0 in %s on line %d - -Warning: gmp_strval(): Unable to convert variable to GMP - wrong type in %s on line %d -bool(false) - -Warning: gmp_strval(): Unable to convert variable to GMP - wrong type in %s on line %d bool(false) string(4) "1000" string(1) "1"

« previous php.cvs (#93395) next »