File: canonicalize.t

package info (click to toggle)
libnumber-recordlocator-perl 0.005-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 144 kB
  • sloc: perl: 1,076; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 341 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
use strict;
use warnings;

use Test::More tests => 5;
use_ok('Number::RecordLocator');

my $g = Number::RecordLocator->new;

is($g->canonicalize('10BS'), 'IOPF', '10BS == IOPF');
is($g->canonicalize('10bs'), 'IOPF', '10bs == IOPF');
is($g->canonicalize('3RTD'), '3RTD', '3RTD == 3RTD');
is($g->canonicalize('3rtd'), '3RTD', '3rtd == 3RTD');