File: 10.init_tests.t

package info (click to toggle)
cipux 3.4.0.11-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 316 kB
  • ctags: 59
  • sloc: perl: 1,064; makefile: 13
file content (18 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!perl -w

use warnings;
use strict;
use Test::More tests => 5;

BEGIN {
        use_ok( 'CipUX' );
}

# Test cipux creation for CipUX
my $cipux = CipUX->new();
ok( $cipux, '->new returns true' );
ok( ref $cipux, '->new returns a reference' );
isa_ok( $cipux, 'SCALAR' , '->new returns a hash reference' );
isa_ok( $cipux, 'CipUX', '->new returns a CipUX object' );
#ok( scalar keys %$cipux == 3, '->new returns an object with 3 attributes' );