]> git.vpit.fr Git - perl/modules/Linux-SysInfo.git/blob - t/01-import.t
Test import and prototypes in t/01-import.t
[perl/modules/Linux-SysInfo.git] / t / 01-import.t
1 #!perl -T
2
3 use strict;
4 use warnings;
5
6 use Test::More tests => 2 * 2;
7
8 require Linux::SysInfo;
9
10 my %syms = (
11  sysinfo         => '',
12  LS_HAS_EXTENDED => '',
13 );
14
15 for (keys %syms) {
16  eval { Linux::SysInfo->import($_) };
17  is $@,            '',        "import $_";
18  is prototype($_), $syms{$_}, "prototype $_";
19 }