implement RFID::Serial->scan and test it
[Biblio-RFID.git] / t / 10-3M-810.t
1 #!/usr/bin/perl
2
3 use Test::More tests => 3;
4 use Data::Dump qw(dump);
5
6 use lib 'lib';
7
8 BEGIN {
9         use_ok( 'RFID::Serial::3M810' );
10 }
11
12 ok( my $o = RFID::Serial::3M810->new( device => '/dev/ttyUSB0' ), 'new' );
13
14 ok( my @tags = $o->inventory, 'inventory' );
15 diag dump @tags;
16
17 ok( my $blocks = $o->read_blocks( $_ ), "read_blocks $_" ) foreach @tags;
18
19 ok( my $visible = $o->scan, 'scan' );
20 diag dump $visible;
21