summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-11-25 21:37:23 +0000
committerNicholas Clark <nick@ccl4.org>2004-11-25 21:37:23 +0000
commite89403c13d9f4c0b1c205624cee0d34bde4b7b77 (patch)
tree917c8ec48aaabcb39d4469b9c430c30f88408760 /lib
parente9a5b206a27d8bea1fef9f43666333f221ba873d (diff)
downloadperl-e89403c13d9f4c0b1c205624cee0d34bde4b7b77.tar.gz
Add an exists test for the things we loop over
p4raw-id: //depot/perl@23538
Diffstat (limited to 'lib')
-rw-r--r--lib/Config.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Config.t b/lib/Config.t
index d2451b8354..24e3cabfbe 100644
--- a/lib/Config.t
+++ b/lib/Config.t
@@ -216,6 +216,8 @@ print "# First entry is '$first'\n";
foreach my $pain ($first, @virtual) {
# No config var is named with anything that is a regexp metachar
+ ok(exists $Config{$pain}, "\$config('$pain') exists");
+
my @result = $Config{$pain};
is (scalar @result, 1, "single result for \$config('$pain')");