in reply to Test::More extension idea
I dunno how Schwern would react to wanting ignorable keys... it kinda breaks the pattern of 'result, 'expected', 'test name'.my %clean = %$hashref1; delete @clean{qw( key1 key2 )}; eq_hash( \%clean, $hashref2, 'partial hash comparison' );
Another approach is to add a new function. Test::More is built around Test::Builder, and it's pretty easy to add new features. Of course, I'm a *little* biased. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Test::More extension idea
by herveus (Prior) on Oct 16, 2001 at 21:54 UTC |