--- t/10-xs.t 2008/08/18 18:32:55 19 +++ t/10-xs.t 2008/08/18 18:44:47 20 @@ -5,7 +5,7 @@ use blib; -use Test::More tests => 22; +use Test::More tests => 25; use Test::Exception; use Data::Dump qw/dump/; @@ -53,4 +53,14 @@ ok( tcidbiterinit( $idb ), 'tcidbiterinit' ); +my @ids; + +while ( my $id = tcidbiternext( $idb ) ) { + ok( $id, "tcidbiternext $id" ); + push @ids, $id; +} + +# order is not defined, so we need to sort it +is_deeply( [ sort @ids ], [ 42, 65536 ], 'all records' ); + diag tcidberrmsg( tcidbecode( $idb ) );