This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5cb6b6
)
&test in constant.t is vestigial, so amputate it.
author
Nicholas Clark
<nick@ccl4.org>
Wed, 1 Dec 2004 16:52:45 +0000
(16:52 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Wed, 1 Dec 2004 16:52:45 +0000
(16:52 +0000)
p4raw-id: //depot/perl@23588
lib/constant.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/constant.t
b/lib/constant.t
index
826a8de
..
1f1d0be
100644
(file)
--- 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';