Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use itemizing instead of capturing
  • Loading branch information
lizmat committed Jul 5, 2015
1 parent b07b9a8 commit 21b7ed5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions S02-types/mixed_multi_dimensional.t
Expand Up @@ -156,15 +156,15 @@ Some deeper tests were already added.

}

{ # Hashref survive addition to an array.
{ # Itemized hash survives addition to an array.
my %h = <a 5 b 6>;
my $hr = \%h;
my $a0 = [ \%h ,'extra' ];
my $a1 = [ \%h ];
my $hr = %h;
my $a0 = [ $%h ,'extra' ];
my $a1 = [ $%h ];
my $a2 = [ $hr ];
is($a0.elems,2,'hash references should not get decomposed');
is($a1.elems,1,'hash references should not get decomposed');
is($a2.elems,1,'hash references should not get decomposed');
is($a0.elems,2,'itemized hash should not get decomposed');
is($a1.elems,1,'itemized hash should not get decomposed');
is($a2.elems,1,'itemized hash should not get decomposed');
}

{ # nested, declared in one statement
Expand Down

0 comments on commit 21b7ed5

Please sign in to comment.