5 |
|
|
6 |
use blib; |
use blib; |
7 |
|
|
8 |
use Test::More tests => 5; |
use Test::More tests => 10; |
9 |
use Test::Exception; |
use Test::Exception; |
10 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
11 |
|
|
15 |
|
|
16 |
cmp_ok( $Search::TokyoDystopia::debug, '==', 0, '$debug' ); |
cmp_ok( $Search::TokyoDystopia::debug, '==', 0, '$debug' ); |
17 |
|
|
18 |
cmp_ok( Search::TokyoDystopia::tcidberrmsg(0), 'eq', 'success', 'tcidberrmsg' ); |
cmp_ok( Search::TokyoDystopia::errmsg(0), 'eq', 'success', 'errmsg' ); |
19 |
|
|
20 |
ok( my $db = Search::TokyoDystopia::tcidbnew, 'tcidbnew' ); # FIXME check better |
ok( my $db = Search::TokyoDystopia::new, 'new' ); # FIXME check better |
21 |
|
|
22 |
|
ok( ! Search::TokyoDystopia::del( $db ), 'del' ); |
23 |
|
|
24 |
|
ok( $db = Search::TokyoDystopia::new, 'new again' ); |
25 |
|
|
26 |
|
is( Search::TokyoDystopia::ecode( $db ), 0, 'ecode' ); |
27 |
|
|
28 |
|
is( Search::TokyoDystopia::tune( $db, 0, 0, 0, 0 ), 1, 'tune' ); |
29 |
|
|
30 |
|
is( Search::TokyoDystopia::setcache( $db, 0, 0 ), 1, 'setcache' ); |
31 |
|
|
32 |
|
is( Search::TokyoDystopia::setfwmmax( $db, 0 ), 1, 'setfwmmax' ); |
33 |
|
|
|
ok( ! Search::TokyoDystopia::tcidbdel( $db ), 'tcidbdel' ); |
|