/[webpac2]/trunk/t/3-normalize-isbn.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/t/3-normalize-isbn.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1256 - (show annotations)
Tue Jul 28 12:40:46 2009 UTC (14 years, 9 months ago) by dpavlin
File MIME type: application/x-troff
File size: 384 byte(s)
use code from lib insted of blib

1 #!/usr/bin/perl -w
2
3 use strict;
4 use lib 'lib';
5
6 use Test::More tests => 4;
7
8 BEGIN {
9 use_ok( 'WebPAC::Test' );
10 use_ok( 'WebPAC::Normalize::ISBN' );
11 }
12
13 is_deeply(
14 [ isbn_13( '1558607013', '978-1558607019' ) ],
15 [ '978-1-55860-701-9', '978-1-55860-701-9', ],
16 'isbn_13' );
17
18 is_deeply(
19 [ isbn_10( '1558607013', '978-1558607019' ) ],
20 [ '1-55860-701-3', '1-55860-701-3' ],
21 'isbn_10' );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26