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

Diff of /t/10-xs.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 27 by dpavlin, Mon Aug 18 19:07:04 2008 UTC revision 28 by dpavlin, Mon Aug 18 19:18:53 2008 UTC
# Line 5  use strict; Line 5  use strict;
5    
6  use blib;  use blib;
7    
8  use Test::More tests => 33;  use Test::More tests => 36;
9  use Test::Exception;  use Test::Exception;
10  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
11    
# Line 69  ok( tcidbsync( $idb ), 'tcidbsync' ); Line 69  ok( tcidbsync( $idb ), 'tcidbsync' );
69    
70  ok( tcidboptimize( $idb ), 'tcidboptimize' );  ok( tcidboptimize( $idb ), 'tcidboptimize' );
71    
 ok( tcidbvanish( $idb ), 'tcidbvanish' );  
   
72  my $copy_path = $path . '-copy';  my $copy_path = $path . '-copy';
73    
74  ok( tcidbcopy( $idb, $copy_path ), "tcidbcopy $copy_path" );  ok( tcidbcopy( $idb, $copy_path ), "tcidbcopy $copy_path" );
# Line 78  ok( -e $copy_path, 'copy exists' ); Line 76  ok( -e $copy_path, 'copy exists' );
76    
77  is( tcidbpath( $idb ), $path, 'tcidbpath' );  is( tcidbpath( $idb ), $path, 'tcidbpath' );
78    
79    is( tcidbrnum( $idb ), 2, 'tcidbrnum' );
80    
81    ok( my $file_size = tcidbfsiz( $idb ), 'tcidbfsiz' );
82    
83    ok( tcidbvanish( $idb ), 'tcidbvanish' );
84    
85  is( tcidbrnum( $idb ), 0, 'tcidbrnum' );  is( tcidbrnum( $idb ), 0, 'tcidbrnum' );
86    
87    cmp_ok( tcidbfsiz( $idb ), '<', $file_size, 'tcidbfsiz' );
88    
89  diag tcidberrmsg( tcidbecode( $idb ) );  diag tcidberrmsg( tcidbecode( $idb ) );

Legend:
Removed from v.27  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26