--- t/10-xs.t 2008/08/18 17:45:56 17 +++ t/10-xs.t 2008/08/18 18:28:05 18 @@ -5,7 +5,7 @@ use blib; -use Test::More tests => 18; +use Test::More tests => 21; use Test::Exception; use Data::Dump qw/dump/; @@ -46,4 +46,10 @@ ok( tcidbput( $idb, 42, 'some data' ), 'tcidbput again' ); is( tcidbget( $idb, 42 ), 'some data', 'tcidbget' ); ok( ! tcidbget( $idb, 1 ), 'tcidbget non-existing' ); + +is_deeply( tcidbsearch( $idb, 'some', IDBSSUBSTR ), [ 42 ], 'tcidbsearch' ); +ok( tcidbput( $idb, 65536, 'some more data' ), 'tcidbput more data' ); +is_deeply( tcidbsearch( $idb, 'some', IDBSSUBSTR ), [ 42, 65536 ], 'tcidbsearch' ); + +diag dump( tcidbsearch( $idb, 'some', IDBSSUBSTR ) ); diag tcidberrmsg( tcidbecode( $idb ) );