]> git.vpit.fr Git - perl/modules/Linux-SysInfo.git/blobdiff - t/01-import.t
Test import and prototypes in t/01-import.t
[perl/modules/Linux-SysInfo.git] / t / 01-import.t
diff --git a/t/01-import.t b/t/01-import.t
new file mode 100644 (file)
index 0000000..8a3b3da
--- /dev/null
@@ -0,0 +1,19 @@
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::More tests => 2 * 2;
+
+require Linux::SysInfo;
+
+my %syms = (
+ sysinfo         => '',
+ LS_HAS_EXTENDED => '',
+);
+
+for (keys %syms) {
+ eval { Linux::SysInfo->import($_) };
+ is $@,            '',        "import $_";
+ is prototype($_), $syms{$_}, "prototype $_";
+}