Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
aadded test for RT #75694
  • Loading branch information
Jimmy Zhuo committed Feb 23, 2011
1 parent 3e93462 commit 2633e61
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions S02-builtin_data_types/hash.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 77;
plan 78;

# basic lvalue assignment
# L<S09/Hashes>
Expand Down Expand Up @@ -263,9 +263,12 @@ lives_ok { Hash.new("a" => "b") }, 'Hash.new($pair) lives';
{
my %hash;
%hash<foo> := 'bar';
is %hash<foo>, 'bar', 'binding hash values ok';
is %hash<foo>, 'bar', 'binding hash value works';
}

# RT #75694
eval_lives_ok('my $rt75694 = { has-b => 42 }', "can have a bareword key starting with 'has-' in a hash");

done;

# vim: ft=perl6

0 comments on commit 2633e61

Please sign in to comment.