projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2d95e1
)
Add a test for keys $tied
author
Father Chrysostomos
<sprout@cpan.org>
Tue, 19 Apr 2011 05:26:52 +0000
(22:26 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Tue, 19 Apr 2011 05:43:13 +0000
(22:43 -0700)
This was ‘inadvertently’ fixed with commit 7ac5715
t/op/tie_fetch_count.t
patch
|
blob
|
history
diff --git
a/t/op/tie_fetch_count.t
b/t/op/tie_fetch_count.t
index
69d4619
..
6d2da1c
100644
(file)
--- 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 => 2
09
);
+ plan (tests => 2
10
);
}
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', **;