/[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 19 by dpavlin, Mon Aug 18 18:32:55 2008 UTC revision 20 by dpavlin, Mon Aug 18 18:44:47 2008 UTC
# Line 5  use strict; Line 5  use strict;
5    
6  use blib;  use blib;
7    
8  use Test::More tests => 22;  use Test::More tests => 25;
9  use Test::Exception;  use Test::Exception;
10  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
11    
# Line 53  is_deeply( tcidbsearch( $idb, 'some', ID Line 53  is_deeply( tcidbsearch( $idb, 'some', ID
53    
54  ok( tcidbiterinit( $idb ), 'tcidbiterinit' );  ok( tcidbiterinit( $idb ), 'tcidbiterinit' );
55    
56    my @ids;
57    
58    while ( my $id = tcidbiternext( $idb ) ) {
59            ok( $id, "tcidbiternext $id" );
60            push @ids, $id;
61    }
62    
63    # order is not defined, so we need to sort it
64    is_deeply( [ sort @ids ], [ 42, 65536 ], 'all records' );
65    
66  diag tcidberrmsg( tcidbecode( $idb ) );  diag tcidberrmsg( tcidbecode( $idb ) );

Legend:
Removed from v.19  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26