unify read_blocks and invetory interface
[Biblio-RFID.git] / t / 20-CPR-M02.t
index bfc560a..54c4a5d 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 
-use Test::More tests => 2;
+use Test::More tests => 3;
 use Data::Dump qw(dump);
 
 use lib 'lib';
@@ -11,4 +11,7 @@ BEGIN {
 
 ok( my $o = RFID::Serial::CPRM02->new( device => '/dev/ttyUSB0' ), 'new' );
 
+ok( my @tags = $o->inventory, 'inventory' );
+
+ok( my $blocks = $o->read_blocks( $_ ), "read_blocks $_" ) foreach @tags;