/[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

Annotation of /t/10-xs.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (hide annotations)
Sun Aug 17 23:53:11 2008 UTC (15 years, 7 months ago) by dpavlin
File MIME type: application/x-troff
File size: 763 byte(s)
- rename function back to original names to prevent another mapping
- export buch of stuff back to caller without asking
- document all functions with snippet from test
- define constants
- added tcidbopen (which doesn't seem to work yet)
1 dpavlin 1 #!/usr/bin/perl
2    
3     use warnings;
4     use strict;
5    
6     use blib;
7    
8 dpavlin 10 use Test::More tests => 11;
9 dpavlin 1 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 dpavlin 2
18 dpavlin 10 cmp_ok( tcidberrmsg(0), 'eq', 'success', 'tcidberrmsg' );
19 dpavlin 1
20 dpavlin 10 ok( my $idb = tcidbnew, 'tcidbnew' ); # FIXME check better
21 dpavlin 3
22 dpavlin 10 ok( ! tcidbdel( $idb ), 'tcidbdel' );
23 dpavlin 4
24 dpavlin 10 ok( $idb = tcidbnew, 'tcidbnew again' );
25 dpavlin 5
26 dpavlin 10 is( tcidbecode( $idb ), 0, 'tcidbecode' );
27 dpavlin 5
28 dpavlin 10 ok( tcidbtune( $idb, 0, 0, 0, IDBTLARGE || IDBTDEFLATE ), 'tcidbtune' );
29 dpavlin 7
30 dpavlin 10 ok( tcidbsetcache( $idb, 0, 0 ), 'tcidbsetcache' );
31 dpavlin 9
32 dpavlin 10 ok( tcidbsetfwmmax( $idb, 0 ), 'tcidbsetfwmmax' );
33 dpavlin 9
34 dpavlin 10 my $path = '/tmp/casket';
35     ok( tcidbopen( $idb, $path, IDBOWRITER || IDBOCREAT ), "tcidbopen $path" );
36    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26