5 |
|
|
6 |
use blib; |
use blib; |
7 |
|
|
8 |
use Test::More tests => 11; |
use Test::More tests => 12; |
9 |
use Test::Exception; |
use Test::Exception; |
10 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
11 |
|
|
13 |
use_ok( 'Search::TokyoDystopia' ); |
use_ok( 'Search::TokyoDystopia' ); |
14 |
} |
} |
15 |
|
|
16 |
|
my $path = 'casket'; |
17 |
|
|
18 |
cmp_ok( $Search::TokyoDystopia::debug, '==', 0, '$debug' ); |
cmp_ok( $Search::TokyoDystopia::debug, '==', 0, '$debug' ); |
19 |
|
|
20 |
cmp_ok( tcidberrmsg(0), 'eq', 'success', 'tcidberrmsg' ); |
cmp_ok( tcidberrmsg(0), 'eq', 'success', 'tcidberrmsg' ); |
27 |
|
|
28 |
is( tcidbecode( $idb ), 0, 'tcidbecode' ); |
is( tcidbecode( $idb ), 0, 'tcidbecode' ); |
29 |
|
|
30 |
ok( tcidbtune( $idb, 0, 0, 0, IDBTLARGE || IDBTDEFLATE ), 'tcidbtune' ); |
ok( tcidbtune( $idb, 0, 0, 0, IDBTLARGE | IDBTDEFLATE ), 'tcidbtune' ); |
31 |
|
|
32 |
ok( tcidbsetcache( $idb, 0, 0 ), 'tcidbsetcache' ); |
ok( tcidbsetcache( $idb, 0, 0 ), 'tcidbsetcache' ); |
33 |
|
|
34 |
ok( tcidbsetfwmmax( $idb, 0 ), 'tcidbsetfwmmax' ); |
ok( tcidbsetfwmmax( $idb, 0 ), 'tcidbsetfwmmax' ); |
35 |
|
|
36 |
my $path = '/tmp/casket'; |
ok( tcidbopen( $idb, $path, IDBOWRITER | IDBOCREAT ), "tcidbopen $path" ); |
|
ok( tcidbopen( $idb, $path, IDBOWRITER || IDBOCREAT ), "tcidbopen $path" ); |
|
37 |
|
|
38 |
ok( tcidbclose( $idb ), 'tcidbclose' ); |
ok( tcidbclose( $idb ), 'tcidbclose' ); |