--- t/10-xs.t 2008/08/18 13:17:52 13 +++ t/10-xs.t 2008/08/18 17:45:56 17 @@ -5,7 +5,7 @@ use blib; -use Test::More tests => 12; +use Test::More tests => 18; use Test::Exception; use Data::Dump qw/dump/; @@ -36,3 +36,14 @@ ok( tcidbopen( $idb, $path, IDBOWRITER | IDBOCREAT ), "tcidbopen $path" ); ok( tcidbclose( $idb ), 'tcidbclose' ); + +ok( tcidbopen( $idb, $path, IDBOWRITER | IDBOCREAT ), "tcidbopen $path again" ); + +ok( tcidbput( $idb, 1, 'foobar' ), 'tcidbput' ); + +ok( tcidbout( $idb, 1, ), 'tcidbout' ); + +ok( tcidbput( $idb, 42, 'some data' ), 'tcidbput again' ); +is( tcidbget( $idb, 42 ), 'some data', 'tcidbget' ); +ok( ! tcidbget( $idb, 1 ), 'tcidbget non-existing' ); +diag tcidberrmsg( tcidbecode( $idb ) );