File: marc_spec2.t

package info (click to toggle)
libcatmandu-marc-perl 1.320-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,116 kB
  • sloc: perl: 4,948; xml: 554; makefile: 2; sh: 1
file content (23 lines) | stat: -rw-r--r-- 610 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!perl

use strict;
use warnings;
use Test::More;
use Catmandu;

note "
---
".'blahmarc_spec(...{^1=\1}{^2=\0}     indicators10: "Cross-platform Perl /Eric F. Johnson."';
{
    my $importer = Catmandu->importer(
        'MARC',
        file => 't/camel9.mrc',
        type => 'ISO',
        fix  => 'marc_spec("...{^1=\1}{^2=\0}", indicators10.$append); retain_field(indicators10)'
    );
    my $record = $importer->first;
    is_deeply $record->{indicators10}, ['Cross-platform Perl /Eric F. Johnson.'], q|fix: marc_spec('...{^1=\1}{^2=\0}', indicators10.$append);|;
}


done_testing;