It's a good idea, but I'd rather see an unified diff with some context.
Maybe use diff when it's available, and fall back on this code when 
it's not.

Sander

On Thu, Aug 22, 2002 at 02:46:57AM +0200, Marcus Boerger wrote:
> The following patch produces *.diff files similar to
> diff command. These would allow for easier checks in faild tests
> when test combines multiple function checks in one test file
> or the test uses var_dump for output.
> 
> For example i changed precision to 13 in array test 003.phpt
> The tests now produce 003.diff
> 004-   float(-0.33333333333333)
> 004+   float(-0.3333333333333)
> 034-   float(-0.33333333333333)
> 034+   float(-0.3333333333333)
> 050-   float(-0.33333333333333)
> 050+   float(-0.3333333333333)
> 
> When the test fails because of memory leaks and such then
> of cause .log files are better to read.
> 
> Any pros/cons?
> 
> Here is the diff
> 
> [ s n i p ]
> 
> 
> 
> ------------------->>> mailto:[EMAIL PROTECTED] <<<------------------
> "Wir sind allzumal Tiere unter Tieren, Kinder der Materie wie sie,
> nur wehrloser. Doch da wir im Unterschied zu den Tieren wissen,
> dass wir sterben muessen, wollen wir uns auf jenen Augenblick vorbereiten,
> indem wir das Leben geniessen, das uns durch Zufall und vom Zufall gegeben 
> ist."
>                                 Umberto Eco, Die Insel des vorigen Tages
> --------------------->>> http://marcus-boerger.de <<<---------------------
> ------------>>> Tel. 0241 / 874 09-7 ### 0179 / 29 14 980  <<<------------

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to