projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19e5ee1
)
Adding the new test would be swell.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 28 May 2001 13:42:55 +0000
(13:42 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 28 May 2001 13:42:55 +0000
(13:42 +0000)
p4raw-id: //depot/perl@10245
t/pragma/autouse.t
[new file with mode: 0644]
patch
|
blob
diff --git a/t/pragma/autouse.t
b/t/pragma/autouse.t
new file mode 100644
(file)
index 0000000..
dbd4408
--- /dev/null
+++ b/
t/pragma/autouse.t
@@ -0,0
+1,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";
+