implement RFID::Serial->scan and test it
[Biblio-RFID.git] / t / 10-3M-810.t
index bd48bdb..ae2e961 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,11 @@ BEGIN {
 
 ok( my $o = RFID::Serial::3M810->new( device => '/dev/ttyUSB0' ), 'new' );
 
+ok( my @tags = $o->inventory, 'inventory' );
+diag dump @tags;
+
+ok( my $blocks = $o->read_blocks( $_ ), "read_blocks $_" ) foreach @tags;
+
+ok( my $visible = $o->scan, 'scan' );
+diag dump $visible;