|Just another Perl shrine|
Test::More - equal_setby brewer (Sexton)
|on May 31, 2003 at 23:48 UTC||Need Help??|
brewer has asked for the
wisdom of the Perl Monks concerning the following question:
Today I learned about some of the test modules in CPAN, and decided to apply Test::More to a little module (my first) that I've been playing with.
It was going well - I found some bugs, fixed them and eventually had 50 something 'ok's on my screen. Then I added another test - this one hopes to check that two arrays of hashrefs contain the same things. Since order is not important I thought an ok(equal_set()) would do the trick.
So here's a cutdown version of what I have:
and here's the output:
I'm sure someone will be able to spot my error.
PS: I realize and you've probably realized that I've not been sufficiently lazy and used Math::VectorReal, but once I've got the tests in place, I should be able to make the changes with confidence...