blob: d3c851c40ebf3fbe2aaad00ec7507d77b0872ac1 [file] [log] [blame]
Nils Diewald8e323ee2014-04-23 17:28:14 +00001#!/usr/bin/env perl
2# source ~/perl5/perlbrew/etc/bashrc
3# perlbrew switch perl-blead@korap
4use strict;
5use warnings;
6use utf8;
7use Test::More;
8use Benchmark ':hireswallclock';
9use lib 'lib', '../lib';
10
11use File::Basename 'dirname';
12use File::Spec::Functions 'catdir';
13
Nils Diewald19205712015-06-18 20:06:45 +000014
Nils Diewald05039a32015-10-01 17:25:33 +000015diag 'Support "availability"';
16diag 'Support "pubPlace-key"';
17
Nils Diewald19205712015-06-18 20:06:45 +000018# TODO: Make 'text' -> 'primaryText'
19
Nils Diewald8e323ee2014-04-23 17:28:14 +000020use_ok('KorAP::Document');
21
22# WPD/00001
23my $path = catdir(dirname(__FILE__), 'WPD/00001');
24ok(my $doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
Nils Diewald19205712015-06-18 20:06:45 +000025like($doc->path, qr!$path/!, 'Path');
Nils Diewald8e323ee2014-04-23 17:28:14 +000026
27ok($doc = KorAP::Document->new( path => $path ), 'Load Korap::Document');
Nils Diewald19205712015-06-18 20:06:45 +000028like($doc->path, qr!$path/$!, 'Path');
Nils Diewald8e323ee2014-04-23 17:28:14 +000029
30ok($doc->parse, 'Parse document');
31
32# Metdata
Nils Diewald19205712015-06-18 20:06:45 +000033is($doc->text_sigle, 'WPD_AAA.00001', 'ID');
34
Nils Diewald8e323ee2014-04-23 17:28:14 +000035is($doc->title, 'A', 'title');
36ok(!$doc->sub_title, 'subTitle');
Nils Diewald7ec51532014-10-28 19:51:26 +000037is($doc->corpus_sigle, 'WPD', 'corpusID');
Nils Diewald8e323ee2014-04-23 17:28:14 +000038is($doc->pub_date, '20050328', 'pubDate');
39is($doc->pub_place, 'URL:http://de.wikipedia.org', 'pubPlace');
40is($doc->text_class->[0], 'freizeit-unterhaltung', 'TextClass');
41is($doc->text_class->[1], 'reisen', 'TextClass');
42is($doc->text_class->[2], 'wissenschaft', 'TextClass');
43is($doc->text_class->[3], 'populaerwissenschaft', 'TextClass');
44ok(!$doc->text_class->[4], 'TextClass');
Nils Diewald19205712015-06-18 20:06:45 +000045is($doc->author, 'Ruru; Jens.Ol; Aglarech; u.a.', 'author');
46
47#is($doc->author->[0], 'Ruru', 'author');
48#is($doc->author->[1], 'Jens.Ol', 'author');
49#is($doc->author->[2], 'Aglarech', 'author');
50#ok(!$doc->author->[3], 'author');
Nils Diewald8e323ee2014-04-23 17:28:14 +000051
52# Additional information
Nils Diewald19205712015-06-18 20:06:45 +000053ok(!$doc->editor, 'Editor');
Nils Diewald8e323ee2014-04-23 17:28:14 +000054is($doc->publisher, 'Wikipedia', 'Publisher');
55is($doc->creation_date, '20050000', 'Creation date');
Nils Diewald8e323ee2014-04-23 17:28:14 +000056ok(!$doc->text_type, 'No text_type');
Nils Diewald19205712015-06-18 20:06:45 +000057ok(!$doc->text_type_art, 'no text_type art');
58ok(!$doc->text_type_ref, 'no text_type ref');
59ok(!$doc->text_domain, 'no text_domain');
60ok(!$doc->text_column, 'no text_column');
61ok(!$doc->keywords_string, 'no keywords');
62is($doc->text_class_string, 'freizeit-unterhaltung reisen wissenschaft populaerwissenschaft', 'no text classes');
63ok(!$doc->language, 'no text_column');
64
65#is($doc->coll_title, 'Wikipedia', 'Collection title');
66#is($doc->coll_sub_title, 'Die freie Enzyklopädie', 'Collection subtitle');
67#is($doc->coll_editor, 'wikipedia.org', 'Collection editor');
68#ok(!$doc->coll_author, 'Collection author');
Nils Diewald8e323ee2014-04-23 17:28:14 +000069
70# BRZ13/00001
71$path = catdir(dirname(__FILE__), 'BRZ13/00001');
72ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
73
74ok($doc->parse, 'Parse document');
75is($doc->title, 'Sexueller Missbrauch –„Das schreiende Kind steckt noch tief in mir“', 'title');
76ok(!$doc->sub_title, 'subTitle');
Nils Diewald7ec51532014-10-28 19:51:26 +000077is($doc->text_sigle, 'BRZ13_APR.00001', 'ID');
78is($doc->corpus_sigle, 'BRZ13', 'corpusID');
Nils Diewald19205712015-06-18 20:06:45 +000079
80
Nils Diewald8e323ee2014-04-23 17:28:14 +000081is($doc->pub_date, '20130402', 'pubDate');
82is($doc->pub_place, 'Braunschweig', 'pubPlace');
Nils Diewald19205712015-06-18 20:06:45 +000083
Nils Diewald8e323ee2014-04-23 17:28:14 +000084is($doc->text_class->[0], 'staat-gesellschaft', 'TextClass');
85is($doc->text_class->[1], 'familie-geschlecht', 'TextClass');
86ok(!$doc->text_class->[2], 'TextClass');
Nils Diewald19205712015-06-18 20:06:45 +000087ok(!$doc->author, 'author');
Nils Diewald8e323ee2014-04-23 17:28:14 +000088
89# Additional information
90ok(!$doc->editor, 'Editor');
91is($doc->publisher, 'Braunschweiger Zeitungsverlag, Druckhaus Albert Limbach GmbH & Co. KG', 'Publisher');
92is($doc->creation_date, '20130402', 'Creation date');
Nils Diewald19205712015-06-18 20:06:45 +000093#is($doc->coll_title, 'Braunschweiger Zeitung', 'Collection title');
94#ok(!$doc->coll_sub_title, 'Collection subtitle');
95#ok(!$doc->coll_editor, 'Collection editor');
96#ok(!$doc->coll_author, 'Collection author');
Nils Diewald8e323ee2014-04-23 17:28:14 +000097is($doc->text_type, 'Zeitung: Tageszeitung', 'text_type');
98ok(!$doc->text_type_art, 'text_type art');
99
100# A01/13047
101$path = catdir(dirname(__FILE__), 'A01/13047');
102ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
103
104ok($doc->parse, 'Parse document');
105is($doc->title, 'Fischer und Kolp im Sonnenhügel', 'title');
106ok(!$doc->sub_title, 'subTitle');
Nils Diewald7ec51532014-10-28 19:51:26 +0000107is($doc->text_sigle, 'A01_APR.13047', 'ID');
108is($doc->corpus_sigle, 'A01', 'corpusID');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000109is($doc->pub_date, '20010402', 'pubDate');
110ok(!$doc->pub_place, 'pubPlace');
111is($doc->text_class->[0], 'freizeit-unterhaltung', 'TextClass');
112is($doc->text_class->[1], 'vereine-veranstaltungen', 'TextClass');
113ok(!$doc->text_class->[2], 'TextClass');
Nils Diewald19205712015-06-18 20:06:45 +0000114ok(!$doc->author, 'author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000115
116# Additional information
117ok(!$doc->editor, 'Editor');
118ok(!$doc->publisher, 'Publisher');
119is($doc->creation_date, '20010402', 'Creation date');
Nils Diewald19205712015-06-18 20:06:45 +0000120#ok(!$doc->coll_title, 'Collection title');
121#ok(!$doc->coll_sub_title, 'Collection subtitle');
122#ok(!$doc->coll_editor, 'Collection editor');
123#ok(!$doc->coll_author, 'Collection author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000124ok(!$doc->text_type, 'text_type');
125is($doc->text_type_art, 'Bericht', 'text_type art');
126
127
128# ERL/0001
129$path = catdir(dirname(__FILE__), 'ERL/00001');
130ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
131
132ok($doc->parse, 'Parse document');
Nils Diewald19205712015-06-18 20:06:45 +0000133is($doc->title, 'MK2/ERL.00001 Amtsblatt des Landesbezirks Baden [diverse Erlasse], Hrsg. und Schriftleitung: Präsidialstelle der Landesverwaltung Baden in Karlsruhe. - Karlsruhe, o.J.', 'title'); # Amtsblatt des Landesbezirks Baden [diverse Erlasse]
134
Nils Diewald8e323ee2014-04-23 17:28:14 +0000135ok(!$doc->sub_title, 'subTitle');
Nils Diewald7ec51532014-10-28 19:51:26 +0000136is($doc->text_sigle, 'MK2_ERL.00001', 'ID');
137is($doc->corpus_sigle, 'MK2', 'corpusID');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000138is($doc->pub_date, '00000000', 'pubDate');
139is($doc->pub_place, 'Karlsruhe', 'pubPlace');
140is($doc->text_class->[0], 'politik', 'TextClass');
141is($doc->text_class->[1], 'kommunalpolitik', 'TextClass');
142ok(!$doc->text_class->[2], 'TextClass');
Nils Diewald19205712015-06-18 20:06:45 +0000143ok(!$doc->author, 'author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000144
145# Additional information
146ok(!$doc->editor, 'Editor');
147is($doc->publisher, 'Badenia Verlag und Druckerei', 'Publisher');
Nils Diewald7ec51532014-10-28 19:51:26 +0000148is($doc->creation_date, '19600000', 'Creation date');
Nils Diewald19205712015-06-18 20:06:45 +0000149diag 'Non-acceptance of creation date ranges may be temporary';
150#ok(!$doc->coll_title, 'Collection title');
151#ok(!$doc->coll_sub_title, 'Collection subtitle');
152#ok(!$doc->coll_editor, 'Collection editor');
153#ok(!$doc->coll_author, 'Collection author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000154is($doc->text_type, 'Erlass', 'text_type');
155ok(!$doc->text_type_art, 'text_type art');
156
Nils Diewald8e323ee2014-04-23 17:28:14 +0000157# A01/02035-substring
158$path = catdir(dirname(__FILE__), 'A01/02035-substring');
159ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
160
161ok($doc->parse, 'Parse document');
Nils Diewald19205712015-06-18 20:06:45 +0000162is($doc->title, 'A00/JAN.02035 St. Galler Tagblatt, 11.01.2000, Ressort: TB-RSP (Abk.)', 'title');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000163ok(!$doc->sub_title, 'subTitle');
Nils Diewald7ec51532014-10-28 19:51:26 +0000164is($doc->text_sigle, 'A00_JAN.02035', 'ID');
165is($doc->corpus_sigle, 'A00', 'corpusID');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000166is($doc->pub_date, '20000111', 'pubDate');
167ok(!$doc->pub_place, 'pubPlace');
168is($doc->text_class->[0], 'sport', 'TextClass');
169is($doc->text_class->[1], 'ballsport', 'TextClass');
170ok(!$doc->text_class->[2], 'TextClass');
Nils Diewald19205712015-06-18 20:06:45 +0000171ok(!$doc->author, 'author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000172
173# Additional information
174ok(!$doc->editor, 'Editor');
175ok(!$doc->publisher, 'Publisher');
176is($doc->creation_date, "20000111", 'Creation date');
Nils Diewald19205712015-06-18 20:06:45 +0000177#ok(!$doc->coll_title, 'Collection title');
178#ok(!$doc->coll_sub_title, 'Collection subtitle');
179#ok(!$doc->coll_editor, 'Collection editor');
180#ok(!$doc->coll_author, 'Collection author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000181ok(!$doc->text_type, 'text_type');
182is($doc->text_type_art, 'Bericht', 'text_type art');
183
Nils Diewald8e323ee2014-04-23 17:28:14 +0000184# A01/02873-meta
185$path = catdir(dirname(__FILE__), 'A01/02873-meta');
186ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
187
188ok($doc->parse, 'Parse document');
189is($doc->title, 'Tradition und Moderne', 'title');
190ok(!$doc->sub_title, 'subTitle');
Nils Diewald7ec51532014-10-28 19:51:26 +0000191is($doc->text_sigle, 'A00_JAN.02873', 'ID');
192is($doc->corpus_sigle, 'A00', 'corpusID');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000193is($doc->pub_date, '20000113', 'pubDate');
194ok(!$doc->pub_place, 'pubPlace');
195is($doc->text_class->[0], 'kultur', 'TextClass');
196is($doc->text_class->[1], 'film', 'TextClass');
197ok(!$doc->text_class->[2], 'TextClass');
Nils Diewald19205712015-06-18 20:06:45 +0000198ok(!$doc->author, 'author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000199
200# Additional information
201ok(!$doc->editor, 'Editor');
202ok(!$doc->publisher, 'Publisher');
203is($doc->creation_date, "20000113", 'Creation date');
Nils Diewald19205712015-06-18 20:06:45 +0000204#ok(!$doc->coll_title, 'Collection title');
205#ok(!$doc->coll_sub_title, 'Collection subtitle');
206#ok(!$doc->coll_editor, 'Collection editor');
207#ok(!$doc->coll_author, 'Collection author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000208ok(!$doc->text_type, 'text_type');
209is($doc->text_type_art, 'Bericht', 'text_type art');
210
211
212# A01/05663-unbalanced
213$path = catdir(dirname(__FILE__), 'A01/05663-unbalanced');
214ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
215
216ok($doc->parse, 'Parse document');
217is($doc->title, 'Mehr Arbeitslose im Dezember', 'title');
218ok(!$doc->sub_title, 'subTitle');
Nils Diewald7ec51532014-10-28 19:51:26 +0000219is($doc->text_sigle, 'A00_JAN.05663', 'ID');
220is($doc->corpus_sigle, 'A00', 'corpusID');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000221is($doc->pub_date, '20000124', 'pubDate');
222ok(!$doc->pub_place, 'pubPlace');
223is($doc->text_class->[0], 'gesundheit-ernaehrung', 'TextClass');
224is($doc->text_class->[1], 'gesundheit', 'TextClass');
225ok(!$doc->text_class->[2], 'TextClass');
Nils Diewald19205712015-06-18 20:06:45 +0000226ok(!$doc->author, 'author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000227
228# Additional information
229ok(!$doc->editor, 'Editor');
230ok(!$doc->publisher, 'Publisher');
231is($doc->creation_date, "20000124", 'Creation date');
Nils Diewald19205712015-06-18 20:06:45 +0000232#ok(!$doc->coll_title, 'Collection title');
233#ok(!$doc->coll_sub_title, 'Collection subtitle');
234#ok(!$doc->coll_editor, 'Collection editor');
235#ok(!$doc->coll_author, 'Collection author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000236ok(!$doc->text_type, 'text_type');
237is($doc->text_type_art, 'Bericht', 'text_type art');
238
239
Nils Diewald8e323ee2014-04-23 17:28:14 +0000240# A01/07452-deep
241$path = catdir(dirname(__FILE__), 'A01/07452-deep');
242ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
243
244ok($doc->parse, 'Parse document');
245is($doc->title, 'Wil im Dezember 1999', 'title');
246ok(!$doc->sub_title, 'subTitle');
Nils Diewald7ec51532014-10-28 19:51:26 +0000247is($doc->text_sigle, 'A00_JAN.07452', 'ID');
248is($doc->corpus_sigle, 'A00', 'corpusID');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000249is($doc->pub_date, '20000129', 'pubDate');
250ok(!$doc->pub_place, 'pubPlace');
251is($doc->text_class->[0], 'politik', 'TextClass');
252is($doc->text_class->[1], 'kommunalpolitik', 'TextClass');
253ok(!$doc->text_class->[2], 'TextClass');
Nils Diewald19205712015-06-18 20:06:45 +0000254ok(!$doc->author, 'author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000255
256# Additional information
257ok(!$doc->editor, 'Editor');
258ok(!$doc->publisher, 'Publisher');
259is($doc->creation_date, "20000129", 'Creation date');
Nils Diewald19205712015-06-18 20:06:45 +0000260#ok(!$doc->coll_title, 'Collection title');
261#ok(!$doc->coll_sub_title, 'Collection subtitle');
262#ok(!$doc->coll_editor, 'Collection editor');
263#ok(!$doc->coll_author, 'Collection author');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000264ok(!$doc->text_type, 'text_type');
265is($doc->text_type_art, 'Bericht', 'text_type art');
266
Nils Diewald19205712015-06-18 20:06:45 +0000267
Nils Diewald98767bb2014-04-25 20:31:19 +0000268# ART
269$path = catdir(dirname(__FILE__), 'artificial');
270ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
Nils Diewald19205712015-06-18 20:06:45 +0000271#is($doc->path, $path . '/', 'Path');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000272
Nils Diewald98767bb2014-04-25 20:31:19 +0000273ok($doc = KorAP::Document->new( path => $path ), 'Load Korap::Document');
Nils Diewald19205712015-06-18 20:06:45 +0000274#is($doc->path, $path . '/', 'Path');
Nils Diewald98767bb2014-04-25 20:31:19 +0000275
276ok($doc->parse, 'Parse document');
277
278# Metdata
279is($doc->title, 'Artificial Title', 'title');
280is($doc->sub_title, 'Artificial Subtitle', 'subTitle');
Nils Diewald7ec51532014-10-28 19:51:26 +0000281is($doc->text_sigle, 'ART_ABC.00001', 'ID');
282is($doc->corpus_sigle, 'ART', 'corpusID');
Nils Diewald98767bb2014-04-25 20:31:19 +0000283is($doc->pub_date, '20010402', 'pubDate');
284is($doc->pub_place, 'Mannheim', 'pubPlace');
285is($doc->text_class->[0], 'freizeit-unterhaltung', 'TextClass');
286is($doc->text_class->[1], 'vereine-veranstaltungen', 'TextClass');
287ok(!$doc->text_class->[2], 'TextClass');
Nils Diewald19205712015-06-18 20:06:45 +0000288#is($doc->author->[0], 'Ruru', 'author');
289#is($doc->author->[1], 'Jens.Ol', 'author');
290#is($doc->author->[2], 'Aglarech', 'author');
291is($doc->author, 'Ruru; Jens.Ol; Aglarech; u.a.', 'author');
Nils Diewald98767bb2014-04-25 20:31:19 +0000292
293# Additional information
294is($doc->editor, 'Nils Diewald', 'Editor');
295is($doc->publisher, 'Artificial articles Inc.', 'Publisher');
296is($doc->creation_date, '19990601', 'Creation date');
Nils Diewald19205712015-06-18 20:06:45 +0000297#is($doc->coll_title, 'Artificial articles', 'Collection title');
298#is($doc->coll_sub_title, 'Best of!', 'Collection subtitle');
299#is($doc->coll_editor, 'Nils Diewald', 'Collection editor');
300#is($doc->coll_author, 'Nils Diewald', 'Collection author');
Nils Diewald98767bb2014-04-25 20:31:19 +0000301is($doc->text_type, 'Zeitung: Tageszeitung', 'No text_type');
302is($doc->text_type_art, 'Bericht', 'text_type art');
Nils Diewald8e323ee2014-04-23 17:28:14 +0000303
Nils Diewald19205712015-06-18 20:06:45 +0000304# Multipath headers
305$path = catdir(dirname(__FILE__), 'VDI/JAN/00001');
306ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
307like($doc->path, qr!$path/!, 'Path');
308
309ok($doc = KorAP::Document->new( path => $path ), 'Load Korap::Document');
310like($doc->path, qr!$path/$!, 'Path');
311
312ok($doc->parse, 'Parse document');
313is($doc->text_sigle, 'VDI_JAN.00001', 'text sigle');
314is($doc->doc_sigle, 'VDI_JAN', 'doc sigle');
315is($doc->corpus_sigle, 'VDI', 'corpus sigle');
316is($doc->title, '10- Zz mit Zahl', 'title');
317ok(!$doc->sub_title, 'subtitle');
318is($doc->pub_date, '20140117', 'pubdate');
319is($doc->pub_place, 'Düsseldorf', 'pubplace');
320is($doc->author, 'Windhövel, Kerstin', 'author');
321is($doc->publisher, 'VDI Verlag GmbH', 'publisher');
322ok(!$doc->editor, 'editor');
323
324ok(!$doc->text_type, 'text type');
325ok(!$doc->text_type_art, 'text type art');
326ok(!$doc->text_type_ref, 'text type ref');
327ok(!$doc->text_column, 'text column');
328ok(!$doc->text_domain, 'text domain');
329ok(!$doc->creation_date, 'creation date');
330ok(!$doc->license, 'License');
331ok(!$doc->pages, 'Pages');
332ok(!$doc->file_edition_statement, 'file edition statement');
333ok(!$doc->bibl_edition_statement, 'bibl edition statement');
334is($doc->reference, 'VDI nachrichten, 17.01.2014, S. 10; 10- Zz mit Zahl [Ausführliche Zitierung nicht verfügbar]', 'Reference');
335
336ok(!$doc->language, 'Language');
337diag 'This may be "de" in the future';
338
339is($doc->doc_title, 'VDI nachrichten, Januar 2014', 'Doc title');
340ok(!$doc->doc_sub_title, 'Doc Sub title');
341ok(!$doc->doc_editor, 'Doc editor');
342ok(!$doc->doc_author, 'Doc author');
343
344is($doc->corpus_title, 'VDI nachrichten 2014', 'Corpus title');
345ok(!$doc->corpus_sub_title, 'Corpus Sub title');
346ok(!$doc->corpus_editor, 'Corpus editor');
347ok(!$doc->corpus_author, 'Corpus author');
348
349is($doc->keywords_string, '', 'Keywords');
350is($doc->text_class_string, 'Freizeit-Unterhaltung Reisen Politik Ausland', 'Text class');
351
352
353# WDD
354$path = catdir(dirname(__FILE__), 'WDD/G27/38989');
355ok($doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
356like($doc->path, qr!$path/!, 'Path');
357ok($doc->parse, 'Parse document');
358
359is($doc->text_sigle, 'WDD11_G27.38989', 'text sigle');
360is($doc->doc_sigle, 'WDD11_G27', 'doc sigle');
361is($doc->corpus_sigle, 'WDD11', 'corpus sigle');
362
363is($doc->title, 'Diskussion:Gunter A. Pilz', 'title');
364ok(!$doc->sub_title, 'subtitle');
365is($doc->pub_date, '20111029', 'pubdate');
366is($doc->pub_place, 'URL:http://de.wikipedia.org', 'pubplace');
367
368is($doc->author, '€pa, u.a.', 'author');
369is($doc->publisher, 'Wikipedia', 'publisher');
370ok(!$doc->editor, 'editor');
371
372is($doc->text_type, 'Diskussionen zu Enzyklopädie-Artikeln', 'text type');
373ok(!$doc->text_type_art, 'text type art');
374ok(!$doc->text_type_ref, 'text type ref');
375ok(!$doc->text_column, 'text column');
376ok(!$doc->text_domain, 'text domain');
377
378is($doc->creation_date, '20070707', 'creation date');
379is($doc->license, 'CC-BY-SA', 'License');
380ok(!$doc->pages, 'Pages');
381ok(!$doc->file_edition_statement, 'file edition statement');
382ok(!$doc->bibl_edition_statement, 'bibl edition statement');
383is($doc->reference, 'Diskussion:Gunter A. Pilz, In: Wikipedia - URL:http://de.wikipedia.org/wiki/Diskussion:Gunter_A._Pilz: Wikipedia, 2007', 'Reference');
384
385is($doc->language, 'de', 'Language');
386
387is($doc->doc_title, 'Wikipedia, Diskussionen zu Artikeln mit Anfangsbuchstabe G, Teil 27', 'Doc title');
388ok(!$doc->doc_sub_title, 'Doc Sub title');
389ok(!$doc->doc_editor, 'Doc editor');
390ok(!$doc->doc_author, 'Doc author');
391
392is($doc->corpus_title, 'Wikipedia.de 2011 Diskussionen', 'Corpus title');
393ok(!$doc->corpus_sub_title, 'Corpus Sub title');
394ok(!$doc->corpus_editor, 'Corpus editor');
395ok(!$doc->corpus_author, 'Corpus author');
396
397is($doc->keywords_string, '', 'Keywords');
398is($doc->text_class_string, '', 'Text class');
399
Nils Diewald8e323ee2014-04-23 17:28:14 +0000400done_testing;
401__END__
Nils Diewald19205712015-06-18 20:06:45 +0000402
403