use Data::Dumper;
-use Test::More tests => 108;
+use Test::More tests => 110;
BEGIN { use_ok( 'IsisDB' ); }
SKIP: {
skip "no CNT file for this database", 5 unless $isis->{cnt_file};
- $isis->read_cnt;
+ ok(my $isis_cnt = $isis->read_cnt, "read_cnt");
+
+ cmp_ok(scalar keys %{$isis_cnt}, '==', 2, "returns 2 elements");
my $cnt = {
'1' => {
foreach my $c (keys %{$cnt}) {
foreach my $kn (keys %{$cnt->{$c}}) {
- cmp_ok($isis->{cnt}->{$c}->{$kn}, '==', $cnt->{$c}->{$kn}, "cnt $c $kn same");
+ cmp_ok($isis_cnt->{$c}->{$kn}, '==', $cnt->{$c}->{$kn}, "cnt $c $kn same");
}
}
}