--- t/10-xs.t 2008/08/17 22:30:01 4 +++ t/10-xs.t 2008/08/17 22:58:23 9 @@ -5,7 +5,7 @@ use blib; -use Test::More tests => 6; +use Test::More tests => 10; use Test::Exception; use Data::Dump qw/dump/; @@ -15,10 +15,19 @@ cmp_ok( $Search::TokyoDystopia::debug, '==', 0, '$debug' ); -cmp_ok( Search::TokyoDystopia::tcidberrmsg(0), 'eq', 'success', 'tcidberrmsg' ); +cmp_ok( Search::TokyoDystopia::errmsg(0), 'eq', 'success', 'errmsg' ); -ok( my $db = Search::TokyoDystopia::tcidbnew, 'tcidbnew' ); # FIXME check better +ok( my $db = Search::TokyoDystopia::new, 'new' ); # FIXME check better -ok( ! Search::TokyoDystopia::tcidbdel( $db ), 'tcidbdel' ); +ok( ! Search::TokyoDystopia::del( $db ), 'del' ); + +ok( $db = Search::TokyoDystopia::new, 'new again' ); + +is( Search::TokyoDystopia::ecode( $db ), 0, 'ecode' ); + +is( Search::TokyoDystopia::tune( $db, 0, 0, 0, 0 ), 1, 'tune' ); + +is( Search::TokyoDystopia::setcache( $db, 0, 0 ), 1, 'setcache' ); + +is( Search::TokyoDystopia::setfwmmax( $db, 0 ), 1, 'setfwmmax' ); -is( Search::TokyoDystopia::tcidbecode( $db ), 0, 'tcidbecode' );