2 |
|
|
3 |
use strict; |
use strict; |
4 |
|
|
5 |
use Test::More tests => 147; |
use Test::More tests => 150; |
6 |
use Test::Exception; |
use Test::Exception; |
7 |
use Cwd qw/abs_path/; |
use Cwd qw/abs_path/; |
8 |
use blib; |
use blib; |
479 |
], |
], |
480 |
); |
); |
481 |
|
|
482 |
|
test_rec_rules( |
483 |
|
'marc_compose with + subfields', |
484 |
|
{ '200' => [{ a => 'foo ; bar', b => 42, c => 'baz' }] }, |
485 |
|
qq{ |
486 |
|
marc_compose('900', |
487 |
|
'a', rec(200,'a'), |
488 |
|
'+', prefix(" * ", rec(200,'c')), |
489 |
|
'b', rec(200,'b'), |
490 |
|
'+', prefix(" : ", rec(200,'c')), |
491 |
|
); |
492 |
|
}, |
493 |
|
[ |
494 |
|
[ '900', ' ', ' ', 'a', 'foo ; bar * baz', 'b', '42 : baz' ] |
495 |
|
], |
496 |
|
); |
497 |
|
|
498 |
# |
# |
499 |
# test rules |
# test rules |
500 |
# |
# |