3 |
use strict; |
use strict; |
4 |
use blib; |
use blib; |
5 |
|
|
6 |
use Test::More tests => 68; |
use Test::More tests => 76; |
7 |
|
|
8 |
BEGIN { use_ok('Nos') }; |
BEGIN { use_ok('Nos') }; |
9 |
|
|
86 |
} |
} |
87 |
|
|
88 |
cmp_ok(scalar $nos->list_members( list => 'delete' ), '==', 0, "list empty"); |
cmp_ok(scalar $nos->list_members( list => 'delete' ), '==', 0, "list empty"); |
89 |
|
|
90 |
|
# test delete lists |
91 |
|
|
92 |
|
foreach my $list (( 'My list', 'test', 'another', 'delete' )) { |
93 |
|
ok($nos->delete_list( list => $list ), "delete $list"); |
94 |
|
ok(! $nos->_get_list($list), "$list doesn't exist"); |
95 |
|
} |
96 |
|
|