/[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 960 - (show annotations)
Fri Nov 2 11:32:02 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: application/x-troff
File size: 379 byte(s)
 r1462@llin:  dpavlin | 2007-11-02 12:31:57 +0100
 ISBN support in normalization using isbn_10 and isbn_13

1 #!/usr/bin/perl -w
2
3 use strict;
4 use blib;
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