Re: cvs: php4 / README.TESTING
| From: | Andrey Hristov | Date: | Wed, 23 Oct 2002 13:06:07 +0000 |
| Subject: | Re: cvs: php4 / README.TESTING | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-15209@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Marcus Bцrger" <marcus.boerger@post.rwth-aachen.de>
To: <php-cvs@lists.php.net>
Sent: Wednesday, October 23, 2002 3:59 PM
Subject: [PHP-CVS] cvs: php4 / README.TESTING
> +
> +/ext/standard/tests/strings 003.phpt is a good example for using EXPECTF
> +instead of EXPECT. From time to time the algorythmn used for shuffle
> +changed and sometimes the machine used to execute the code has influence
> +on the result of shuffle. But it always retuns a three character string
> +detectable by %s. Other forms scanable are %i for integers, %f for
> +floating point values and %x for hexadecimal values.
> +
However this test does not test how good is the randomization of
str_shuffle.
I got an idea how to implement a check so if case something goes wrong we
will
have FAIL. ATM it is checked that str_shuffle() doesn't change the original
string
as it did for some time.
Andrey