The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/perl

use strict;
use warnings;
use utf8;

use Catmandu::Importer::MARC;
use Test::Simple tests => 3;

my $importer = Catmandu::Importer::MARC->new(file => 't/marc.xml', type => 'XML');

my $records = $importer->to_array;

ok(@$records == 1);

ok($records->[0]->{record}->[1]->[0] eq '920');

ok($records->[0]->{record}->[8]->[4] eq 'TEEM (한국전기전자재료학회)');

1;