/[Search-TokyoDystopia]/t/10-xs.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /t/10-xs.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7 - (show annotations)
Sun Aug 17 22:54:02 2008 UTC (15 years, 7 months ago) by dpavlin
File MIME type: application/x-troff
File size: 675 byte(s)
setcache
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5
6 use blib;
7
8 use Test::More tests => 9;
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::errmsg(0), 'eq', 'success', 'errmsg' );
19
20 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' );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26