On Sun, Oct 02, 2005 at 01:42:05PM +0200, Torsten Schoenfeld wrote:
> On Fri, 2005-09-30 at 14:40 -0700, chromatic wrote:
> 
> > Does doing it in two steps work?  Instead of:
> > 
> > >   is_deeply ($obj->get ('some_flags'), ['value-one', 'value-two']);
> > 
> > perhaps:
> > 
> > my @flags = @{ $obj->get( 'some_flags' ) };
> > is_deeply( [EMAIL PROTECTED], [ 'value-one', 'value-two' ] );
> 
> Yep, that works.  As Schwern said, this is probably the only workable
> solution.  Looks like I'll have to change quite a few tests to use this.

If you have quite a few tests to change, you may want to just do:

is_deeply( [EMAIL PROTECTED] $obj->get( 'some_flags' ) }, [ 'value-one', 
'value-two' ] );

Reply via email to