implement RFID::Serial->scan and test it
[Biblio-RFID.git] / t / 10-3M-810.t
index 66938c1..ae2e961 100755 (executable)
@@ -11,5 +11,11 @@ BEGIN {
 
 ok( my $o = RFID::Serial::3M810->new( device => '/dev/ttyUSB0' ), 'new' );
 
-ok( my $inventory = $o->inventory, 'inventory' );
+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;