Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make sure $hash{} decontainerizes too
  • Loading branch information
TimToady committed Feb 28, 2015
1 parent 51c3b8e commit feca340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion S02-types/array.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 95;
plan 98;

#L<S02/Mutable types/Array>

Expand Down
5 changes: 4 additions & 1 deletion S02-types/hash.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 93;
plan 94;

# basic lvalue assignment
# L<S09/Hashes>
Expand Down Expand Up @@ -254,6 +254,9 @@ lives_ok { Hash.new("a" => "b") }, 'Hash.new($pair) lives';
my %h = a => 1, b => 2, c => 3;
is %h{*}.join('|'), %h.values.join('|'), '{*} whatever slice';
is %h{}.join('|'), %h.join('|'), '{} zen slice';

my $h := { a => 1, b => 2, c => 3 }; say $h{}[0].WHAT.gist;

This comment has been minimized.

Copy link
@Mouq

Mouq Feb 28, 2015

Contributor

Is say $h{}[0].WHAT.gist; supposed to still be here?

is $h{}[0].WHAT.gist, '(Pair)', '{} zen slice decontainerizes';
} #2

# RT #75868
Expand Down

0 comments on commit feca340

Please sign in to comment.