197 |
{ |
{ |
198 |
qname => q":bar", |
qname => q":bar", |
199 |
join_qname => q"bar", |
join_qname => q"bar", |
200 |
prefix => q"", |
prefix => DEFAULT_PFX, |
201 |
lname => q"bar", |
lname => q"bar", |
202 |
result => 0, |
result => 0, |
203 |
join_result => 1, |
join_result => 1, |
413 |
|
|
414 |
$chk = Message::Markup::XML::QName::join_qname |
$chk = Message::Markup::XML::QName::join_qname |
415 |
($_->{prefix}, $_->{lname}, %{$_->{opt}||{}}); |
($_->{prefix}, $_->{lname}, %{$_->{opt}||{}}); |
416 |
if ((defined $_->{join_result} and $_->{join_result}) or $_->{result}) { |
if (defined $_->{join_result} ? $_->{join_result} : $_->{result}) { |
417 |
ok $chk->{qname} eq ($_->{join_qname} || $_->{qname}), "Join 1: $_->{prefix}, $_->{lname} => $chk->{qname}"; |
ok $chk->{qname} eq ($_->{join_qname} || $_->{qname}), qq(Join 1: "$_->{prefix}":"$_->{lname}" => "$chk->{qname}" ("@{[$_->{join_qname} || $_->{qname}]}" expected)); |
418 |
} else { |
} else { |
419 |
ok $chk->{success} == ((defined $_->{join_result} and $_->{join_result}) or $_->{result}), |
ok $chk->{success} == ((defined $_->{join_result} and $_->{join_result}) or $_->{result}), |
420 |
"Join 0: $chk->{success}; $_->{prefix}, $_->{lname} => $chk->{qname}"; |
"Join 0: $chk->{success}; $_->{prefix}, $_->{lname} => $chk->{qname}"; |