X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F20-CPR-M02.t;h=9e85f613ad1e74ae449f271185a601e5f8d5f98d;hb=dd0ff7b7d37f0dcf436cd6921f8ffcaa16332a24;hp=bfc560aa01ddba4f13ebb32831cc4667376565c5;hpb=0728f0c62a76647810784e47318114fa5e221bd1;p=Biblio-RFID.git diff --git a/t/20-CPR-M02.t b/t/20-CPR-M02.t index bfc560a..9e85f61 100755 --- a/t/20-CPR-M02.t +++ b/t/20-CPR-M02.t @@ -1,14 +1,20 @@ #!/usr/bin/perl -use Test::More tests => 2; +use Test::More tests => 3; use Data::Dump qw(dump); use lib 'lib'; BEGIN { - use_ok( 'RFID::Serial::CPRM02' ); + use_ok( 'RFID::Biblio::CPRM02' ); } -ok( my $o = RFID::Serial::CPRM02->new( device => '/dev/ttyUSB0' ), 'new' ); +ok( my $o = RFID::Biblio::CPRM02->new( device => '/dev/ttyUSB0' ), 'new' ); +ok( my @tags = $o->inventory, 'inventory' ); + +ok( my $blocks = $o->read_blocks( $_ ), "read_blocks $_" ) foreach @tags; + +ok( my $visible = $o->scan, 'scan' ); +diag dump $visible;