Integrate version.pm-0.77 into bleadperl
[p5sagit/p5-mst-13.2.git] / lib / Math / underbar.t
CommitLineData
e7deb4af 1#
2# Tests that the standard Perl 5 functions that we override
3# that operate on the $_ will work correctly [perl #62412]
4#
5
6use Test::More;
7
8my @f = qw(abs cos exp log sin sqrt);
9
10plan tests => scalar @f;
11
12use strict;
13
14use Math::Complex;
15
16my %CORE;
17
18for my $f (@f) {
19 local $_ = 0.5;
20 $CORE{$f} = eval "CORE::$f";
21}
22
23for my $f (@f) {
24 local $_ = 0.5;
25 is(eval "Math::Complex::$f", $CORE{$f}, $f);
26}
27