work without tags in range
[Biblio-RFID.git] / t / 30-librfid.t
index 12e3e6a..7182cf0 100755 (executable)
@@ -1,20 +1,18 @@
 #!/usr/bin/perl
 
-use Test::More tests => 3;
+use Test::More;
 use Data::Dump qw(dump);
 
 use lib 'lib';
 
 BEGIN {
-       use_ok( 'RFID::Biblio::librfid' );
+       use_ok( 'RFID::Biblio::Reader::librfid' );
 }
 
-ok( my $o = RFID::Biblio::librfid->new( tool => '/rest/cvs/librfid/utils/librfid-tool' ), 'new' );
+ok( my $o = RFID::Biblio::Reader::librfid->new( tool => '/rest/cvs/librfid/utils/librfid-tool' ), 'new' );
 
-ok( my @tags = $o->inventory, 'inventory' );
-diag dump @tags;
-
-__END__
+my @tags = $o->inventory;
+diag 'inventory = ', dump @tags;
 
 my $old_afi;
 
@@ -36,6 +34,4 @@ foreach my $tag ( @tags ) {
 
 }
 
-ok( my $visible = $o->scan, 'scan' );
-diag dump $visible;
-
+done_testing;