summaryrefslogtreecommitdiff
path: root/t/pragma/autouse.t
blob: dbd44086fa19f7a2560e8b0d17160ed875a83226 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
BEGIN {
	chdir 't' if -d 't';
	@INC = '../lib';
}

print "1..3\n";

use autouse 'Math::Complex' => qw(cplx);
use autouse 'Math::Trig' => qw(Math::Trig::deg2grad($;$));

print "ok 1\n";

print "not " unless sqrt(cplx(-1)) == cplx(0, 1);
print "ok 2\n";

print "not " unless Math::Trig::deg2grad(360, 1) == 400;
print "ok 3\n";