summaryrefslogtreecommitdiff
path: root/lib/Internals.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Internals.t')
-rw-r--r--lib/Internals.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Internals.t b/lib/Internals.t
index 1f514fd344..e8abebbb2d 100644
--- a/lib/Internals.t
+++ b/lib/Internals.t
@@ -7,9 +7,11 @@ BEGIN {
}
}
-use Test::More tests => 29;
+use Test::More tests => 33;
my $foo;
+my @foo;
+my %foo;
ok( !Internals::SvREADONLY $foo );
ok( Internals::SvREADONLY $foo, 1 );
@@ -49,3 +51,8 @@ is( Internals::SvREFCNT($foo), 1 );
}
is( Internals::SvREFCNT($foo), 1 );
+is( Internals::SvREFCNT(@foo), 1 );
+is( Internals::SvREFCNT($foo[2]), 1 );
+is( Internals::SvREFCNT(%foo), 1 );
+is( Internals::SvREFCNT($foo{foo}), 1 );
+