push more variables to koha
[Biblio-RFID.git] / t / 30-librfid.t
1 #!/usr/bin/perl
2
3 use Test::More;
4 use Data::Dump qw(dump);
5
6 use lib 'lib';
7
8 BEGIN {
9         use_ok( 'Biblio::RFID::Reader::librfid' );
10 }
11
12 ok( my $o = Biblio::RFID::Reader::librfid->new(), 'new' );
13
14 my @tags = $o->inventory;
15 diag 'inventory = ', dump @tags;
16
17 my $old_afi;
18
19 foreach my $tag ( @tags ) {
20
21         ok( my $blocks = $o->read_blocks( $tag ), "read_blocks $tag" );
22
23         ok( my $afi = $o->read_afi( $tag ), "read_afi $tag" );
24
25         cmp_ok( $afi, '==', -1, 'afi' );
26
27 }
28
29 done_testing;