Fix docSigle trimming
Change-Id: If1356b2aabda2d153e48908ebe397ceefb130584
diff --git a/t/list2vc-def.t b/t/list2vc-def.t
index d5a0e57..953f5c2 100644
--- a/t/list2vc-def.t
+++ b/t/list2vc-def.t
@@ -107,6 +107,15 @@
is($json->{'collection'}->{'value'}->[0], 'A00/APR/23232', 'type');
is($json->{'collection'}->{'comment'}, 'name:"VAS-N91 (Stand 2013, korr. 2017)"', 'type');
+my $corpw2 = catfile(dirname(__FILE__), 'data', 'corp-w-cultwar.beziehung.def');
+$json = decode_json(encode('utf-8',join('', `$script def $corpw2`)));
+
+is($json->{'collection'}->{'@type'}, 'koral:doc', 'type');
+is($json->{'collection'}->{'key'}, 'docSigle', 'type');
+is($json->{'collection'}->{'value'}->[0], 'FSP/SCP', 'type');
+is($json->{'collection'}->{'comment'}, 'name:"Culture War: Beziehung"', 'type');
+
+
done_testing;
__END__