On Thursday 19 June 2003 06:55, Shlomi Fish wrote:
> From what I understand the Test namespace is intended for modules that are
> meant to test Perl code for bugs (Test, Test::More, Test::Simple,
> Test::Harness, etc.). I think your module belongs somewhere under Data.
> Like Data::Test::Deep or wherever.

It's a Test::Builder based testing module, it's designed to replace and 
enhances Test::More's is_deeply() and eq_set(). is_deeply() has several 
limitiations like not handling circular references and ignoring the 
blessedness of references, it also has a few bugs.

It outputs the usual test pass/fail stuff plus diagnostics explaining where it 
found a difference between the given structure and what it expected. For 
example

not ok 1
#     Failed test (-e at line 1)
# Compared ${$data->[0]->{"key"}->load("filename")}
#    got : 'some text'
# expect : 'something else'

That said, I probably will be breaking it into 2 modules, one which compares 
data and one which to wraps that in a Test::Builder interface. Hopefully then 
you will be able to use it easily in assertions and other non-testing 
situations.

For the moment, I want to stake my claim on a Test:: namespace,

F


Reply via email to