--- trunk/t/3-normalize.t 2006/07/04 11:08:43 579 +++ trunk/t/3-normalize.t 2006/07/23 20:19:56 603 @@ -2,7 +2,7 @@ use strict; -use Test::More tests => 147; +use Test::More tests => 150; use Test::Exception; use Cwd qw/abs_path/; use blib; @@ -479,6 +479,22 @@ ], ); + test_rec_rules( + 'marc_compose with + subfields', + { '200' => [{ a => 'foo ; bar', b => 42, c => 'baz' }] }, + qq{ + marc_compose('900', + 'a', rec(200,'a'), + '+', prefix(" * ", rec(200,'c')), + 'b', rec(200,'b'), + '+', prefix(" : ", rec(200,'c')), + ); + }, + [ + [ '900', ' ', ' ', 'a', 'foo ; bar * baz', 'b', '42 : baz' ] + ], + ); + # # test rules #