File: 10-parser.t

package info (click to toggle)
libmarc-spec-perl 2.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 244 kB
  • sloc: perl: 686; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
use Test::More;
use MARC::Spec::Parser;

my $parser = MARC::Spec::parse('006$a{^1}');
ok $parser->subfields->[0]->subspecs->[0]->right->indicator->position eq '1', 'subspec indicator position abbreviation2';

$parser = MARC::Spec::parse('006^2{^1}');
ok $parser->indicator->subspecs->[0]->right->indicator->position eq '1', 'subspec indicator position abbreviation3';

done_testing();