diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-04-18 22:26:52 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-04-18 22:43:13 -0700 |
commit | 075980ed0174c958c1d74a96dd5a4e8f798ab37c (patch) | |
tree | ac95388b4456f1ff5024a7d5910fe9f2579f3865 /t | |
parent | d2d95e1390fa8da3e5c59558c1a326336e57c9dc (diff) | |
download | perl-075980ed0174c958c1d74a96dd5a4e8f798ab37c.tar.gz |
Add a test for keys $tied
This was ‘inadvertently’ fixed with commit 7ac5715
Diffstat (limited to 't')
-rw-r--r-- | t/op/tie_fetch_count.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/op/tie_fetch_count.t b/t/op/tie_fetch_count.t index 69d4619679..6d2da1cd24 100644 --- a/t/op/tie_fetch_count.t +++ b/t/op/tie_fetch_count.t @@ -7,7 +7,7 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; require './test.pl'; - plan (tests => 209); + plan (tests => 210); } use strict; @@ -165,6 +165,7 @@ $dummy = @$var2 ; check_count '@{}'; $dummy = shift $var2 ; check_count 'shift arrayref'; tie my $var3 => 'main', {}; $dummy = %$var3 ; check_count '%{}'; +$dummy = keys $var3 ; check_count 'keys hashref'; { no strict 'refs'; tie my $var4 => 'main', **; |