in reply to Re: Test::More - equal_set
in thread Test::More - equal_set
ok, knew there had to be something out there... Test::Deep using 'bag' (or set maybe, they look the same in the docs..) Unfortunately it doesn't seem to be a standard Perl module.
#!/usr/bin/perl use Test::More qw(no_plan); use Test::Deep; my (@this,@that); @this = ( { fred => 1 }, { wilma => 1 } ); @that = ( { wilma => 1 }, { fred => 1 } ); cmp_deeply(\@this, bag(@that), 'cmp_deeply Deep Order Diff');
cheers,
J
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Test::More - equal_set
by brewer (Sexton) on Jun 01, 2003 at 16:12 UTC |