#!/usr/bin/perl
-use Test::More tests => 7;
+use Test::More tests => 8;
use Data::Dump qw(dump);
use lib 'lib';
BEGIN {
- use_ok( 'RFID::Biblio::RFID501' );
+ use_ok( 'Biblio::RFID::RFID501' );
}
my $tags =
foreach my $tag ( @$tags ) {
- ok( $hash = RFID::Biblio::RFID501->to_hash( $tag ), 'to_hash' );
+ ok( $hash = Biblio::RFID::RFID501->to_hash( $tag ), 'to_hash' );
diag dump $hash;
- ok( $bytes = RFID::Biblio::RFID501->from_hash( $hash ), 'from_hash' );
+ ok( $bytes = Biblio::RFID::RFID501->from_hash( $hash ), 'from_hash' );
my $orig = join('', @$tag);
cmp_ok( $bytes, 'eq', $orig, 'roundtrip' );
}
+ok( my $bytes = Biblio::RFID::RFID501->blank, 'blank' );
+diag dump $bytes;
+