1 |
#!/usr/bin/perl |
2 |
|
3 |
use warnings; |
4 |
use strict; |
5 |
|
6 |
use blib; |
7 |
|
8 |
use Test::More tests => 8; |
9 |
use Test::Exception; |
10 |
use Data::Dump qw/dump/; |
11 |
|
12 |
BEGIN { |
13 |
use_ok( 'Search::TokyoDystopia' ); |
14 |
} |
15 |
|
16 |
cmp_ok( $Search::TokyoDystopia::debug, '==', 0, '$debug' ); |
17 |
|
18 |
cmp_ok( Search::TokyoDystopia::tcidberrmsg(0), 'eq', 'success', 'tcidberrmsg' ); |
19 |
|
20 |
ok( my $db = Search::TokyoDystopia::tcidbnew, 'tcidbnew' ); # FIXME check better |
21 |
|
22 |
ok( ! Search::TokyoDystopia::tcidbdel( $db ), 'tcidbdel' ); |
23 |
|
24 |
ok( $db = Search::TokyoDystopia::tcidbnew, 'tcidbnew again' ); |
25 |
|
26 |
is( Search::TokyoDystopia::tcidbecode( $db ), 0, 'tcidbecode' ); |
27 |
|
28 |
is( Search::TokyoDystopia::tcidbtune( $db, 0, 0, 0, 0 ), 1, 'tcidbtune' ); |