X-Git-Url: http://git.rot13.org/?p=Biblio-RFID.git;a=blobdiff_plain;f=t%2F10-3M-810.t;h=1099a214aef7f1c7b51af97fc97b5045336ecd80;hp=52d8b4b442ad0c73f9222591b3b175b3b4234695;hb=75a8809d9f67c952c0db9c3941ec615cace3c716;hpb=3cb0945eb525dbb10ce4b0f4b1f7bdb34911e8b4 diff --git a/t/10-3M-810.t b/t/10-3M-810.t index 52d8b4b..1099a21 100755 --- a/t/10-3M-810.t +++ b/t/10-3M-810.t @@ -1,15 +1,15 @@ #!/usr/bin/perl -use Test::More tests => 3; +use Test::More; # tests => 3; use Data::Dump qw(dump); use lib 'lib'; BEGIN { - use_ok( 'RFID::Serial::3M810' ); + use_ok( 'RFID::Biblio::Reader::3M810' ); } -ok( my $o = RFID::Serial::3M810->new( device => '/dev/ttyUSB0' ), 'new' ); +ok( my $o = RFID::Biblio::Reader::3M810->new( device => '/dev/ttyUSB0' ), 'new' ); ok( my @tags = $o->inventory, 'inventory' ); diag dump @tags; @@ -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"; @@ -37,3 +37,4 @@ foreach my $tag ( @tags ) { ok( my $visible = $o->scan, 'scan' ); diag dump $visible; +done_testing();