/[Search-TokyoDystopia]/t/10-tci.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-tci.t

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

revision 17 by dpavlin, Mon Aug 18 17:45:56 2008 UTC revision 18 by dpavlin, Mon Aug 18 18:28:05 2008 UTC
# Line 5  use strict; Line 5  use strict;
5    
6  use blib;  use blib;
7    
8  use Test::More tests => 18;  use Test::More tests => 21;
9  use Test::Exception;  use Test::Exception;
10  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
11    
# Line 46  ok( tcidbout( $idb, 1, ), 'tcidbout' ); Line 46  ok( tcidbout( $idb, 1, ), 'tcidbout' );
46  ok( tcidbput( $idb, 42, 'some data' ), 'tcidbput again' );  ok( tcidbput( $idb, 42, 'some data' ), 'tcidbput again' );
47  is( tcidbget( $idb, 42 ), 'some data', 'tcidbget' );  is( tcidbget( $idb, 42 ), 'some data', 'tcidbget' );
48  ok( ! tcidbget( $idb, 1 ), 'tcidbget non-existing' );  ok( ! tcidbget( $idb, 1 ), 'tcidbget non-existing' );
49    
50    is_deeply( tcidbsearch( $idb, 'some', IDBSSUBSTR ), [ 42 ], 'tcidbsearch' );
51    ok( tcidbput( $idb, 65536, 'some more data' ), 'tcidbput more data' );
52    is_deeply( tcidbsearch( $idb, 'some', IDBSSUBSTR ), [ 42, 65536 ], 'tcidbsearch' );
53    
54    diag dump( tcidbsearch( $idb, 'some', IDBSSUBSTR ) );
55  diag tcidberrmsg( tcidbecode( $idb ) );  diag tcidberrmsg( tcidbecode( $idb ) );

Legend:
Removed from v.17  
changed lines
  Added in v.18

  ViewVC Help
Powered by ViewVC 1.1.26