X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F10-3M-810.t;h=b2bcc0e3af105e44004d624a0edb871ff899af3d;hb=ec78566cc9572e9a76afe5f3fa5fbb5054632d59;hp=238cc8f3fd9afebf127c5220dda424144b015a0a;hpb=5ec789bb5ba1ca702b6938ec2490c98a3ed9d82d;p=Biblio-RFID.git diff --git a/t/10-3M-810.t b/t/10-3M-810.t index 238cc8f..b2bcc0e 100755 --- a/t/10-3M-810.t +++ b/t/10-3M-810.t @@ -6,13 +6,13 @@ use Data::Dump qw(dump); use lib 'lib'; BEGIN { - use_ok( 'RFID::Biblio::3M810' ); + use_ok( 'Biblio::RFID::Reader::3M810' ); } -ok( my $o = RFID::Biblio::3M810->new( device => '/dev/ttyUSB0' ), 'new' ); +ok( my $o = Biblio::RFID::Reader::3M810->new( device => '/dev/ttyUSB0' ), 'new' ); -ok( my @tags = $o->inventory, 'inventory' ); -diag dump @tags; +my @tags = $o->inventory; +diag 'inventory ',join(' ',@tags); my $old_afi; @@ -22,7 +22,7 @@ foreach my $tag ( @tags ) { ok( my $afi = $o->read_afi( $tag ), "read_afi $tag" ); - ok( $o->write_blocks( $tag, $blocks ), "write_blocks $tag" ); + ok( $o->write_blocks( $tag, $blocks->{$tag} ), "write_blocks $tag" ); my $new_afi = "\x42"; @@ -34,7 +34,4 @@ foreach my $tag ( @tags ) { } -ok( my $visible = $o->scan, 'scan' ); -diag dump $visible; - done_testing();