summaryrefslogtreecommitdiff
path: root/lib/constant.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-12-01 16:52:45 +0000
committerNicholas Clark <nick@ccl4.org>2004-12-01 16:52:45 +0000
commit8c31f2f2bdae21a003f2d57f25c1b984e764a986 (patch)
tree82dccb437a56a2c932fe547972d7042ef82b8f89 /lib/constant.t
parenta5cb6b6262312bf62eeedd8696aa97c4d54cbcd7 (diff)
downloadperl-8c31f2f2bdae21a003f2d57f25c1b984e764a986.tar.gz
&test in constant.t is vestigial, so amputate it.
p4raw-id: //depot/perl@23588
Diffstat (limited to 'lib/constant.t')
-rw-r--r--lib/constant.t12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/constant.t b/lib/constant.t
index 826a8de495..1f1d0be3d9 100644
--- a/lib/constant.t
+++ b/lib/constant.t
@@ -19,18 +19,6 @@ my $TB = Test::More->builder;
BEGIN { use_ok('constant'); }
-sub test ($$;$) {
- my($num, $bool, $diag) = @_;
- if ($bool) {
- print "ok $num\n";
- return;
- }
- print "not ok $num\n";
- return unless defined $diag;
- $diag =~ s/\Z\n?/\n/; # unchomp
- print map "# $num : $_", split m/^/m, $diag;
-}
-
use constant PI => 4 * atan2 1, 1;
ok defined PI, 'basic scalar constant';