File: 01_compile.t

package info (click to toggle)
libparams-util-perl 0.30-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 264 kB
  • ctags: 114
  • sloc: perl: 2,027; makefile: 42
file content (23 lines) | stat: -rw-r--r-- 488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl

use strict;
BEGIN {
	$|  = 1;
	$^W = 1;
}

use Test::More tests => 5;
use File::Spec::Functions ':ALL';

# Check their perl version
ok( $] >= 5.004, "Your perl is new enough" );

# Does the module load
use_ok('Params::Util');

# Double check that Scalar::Util is valid
require_ok( 'Scalar::Util' );
ok( $Scalar::Util::VERSION >= 1.14, 'Scalar::Util version is at least 1.14' );
ok( defined &Scalar::Util::refaddr, 'Scalar::Util has a refaddr implementation' );

exit(0);