X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F91merge_attr.t;h=6699150b2dedd4a5d0964b19e4eb61dfc1e4ee3f;hb=41916570b3a93b05746e23b73c9a9b5005bc0d2e;hp=9a6f38c77de5079a64d6a964969ccfc36bc4271f;hpb=1d78a406c9cbc81a8527607e00a81008bb537fc6;p=dbsrgits%2FDBIx-Class.git diff --git a/t/91merge_attr.t b/t/91merge_attr.t index 9a6f38c..6699150 100644 --- a/t/91merge_attr.t +++ b/t/91merge_attr.t @@ -5,9 +5,8 @@ use Test::More; use lib qw(t/lib); use DBICTest; use Test::More; -use Data::Dumper; -plan tests => 14; +plan tests => 15; my $schema = DBICTest->init_schema(); my $rs = $schema->resultset( 'CD' ); @@ -53,6 +52,14 @@ my $rs = $schema->resultset( 'CD' ); } { + my $a = [ 'twokeys' ]; + my $b = [ 'cds', 'cds' ]; + my $expected = [ 'twokeys', 'cds', 'cds' ]; + my $result = $rs->_merge_attr($a, $b); + is_deeply( $result, $expected ); +} + +{ my $a = [ 'artist', 'cd', { 'artist' => 'manager' } ]; my $b = 'artist'; my $expected = [ 'artist', 'cd', { 'artist' => 'manager' } ];