File: 01-to_string.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 (7 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
use Test::More;
use MARC::Spec;

my $ms = MARC::Spec::parse('246$b{$a|002}{003[0]/0=\A}');
ok $ms->to_string() eq '246[0-#]$b[0-#]{246[0-#]$b[0-#]?246[0-#]$a[0-#]|246[0-#]$b[0-#]?002[0-#]}{003[0]/0=\A}', 'to_string';

done_testing();