develooper Front page | perl.perl5.porters | Postings from March 2003

[PATCH] 4 bugs in Test::More

Thread Next
From:
Fergal Daly
Date:
March 21, 2003 02:53
Subject:
[PATCH] 4 bugs in Test::More
Message ID:
200303211057.31879.fergal@esatclear.ie
This is a resend of 4 patches that didn't go into the latest snapshot.
Bugs are:

is_deeply({}, {key => []})

should not be a pass

$a=[];is_deeply($a, $a."")

should not be a pass

is_deeply([(\"a"), "b"], [(\"a"), "c"])

gives too many []s in diagnostics

eq_array() leaves data hanging around in @Test::More::Data_Stack, possibly 
preventing DESTROYs.

To see them yourself, run show.sh.

ref.patch also changes the diagnostic output slightly so that refs are output 
without quotes.

Also included is a patch for the tests to handle this output change and to add 
regression tests.

Patches should be applied in order

ref.patch
scalar.patch
stack.patch
dne.patch
tests.patch

F

-- 
Do you need someone with lots of Unix sysadmin and/or lots of OO software 
development experience? Go on, giz a job.
My CV - http://www.fergaldaly.com/cv.html

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About