blob: 867542def00f77fba7db4852de62d7bd5b9ec9ee [file] [log] [blame]
Nils Diewald32e30f02014-10-30 00:52:36 +00001#!/usr/bin/env perl
2# source ~/perl5/perlbrew/etc/bashrc
3# perlbrew switch perl-blead@korap
4use strict;
5use warnings;
6use Test::More;
7use Data::Dumper;
8use JSON::XS;
9
Nils Diewald6d565072014-10-30 23:20:58 +000010use Benchmark qw/:hireswallclock/;
11
12my $t = Benchmark->new;
13
Nils Diewald32e30f02014-10-30 00:52:36 +000014use utf8;
15use lib 'lib', '../lib';
16
17use File::Basename 'dirname';
18use File::Spec::Functions 'catdir';
19
20use_ok('KorAP::Document');
21
22# GOE/AGA/03828
23my $path = catdir(dirname(__FILE__), 'GOE/AGA/03828');
Nils Diewaldd681eab2014-11-01 01:18:25 +000024# my $path = '/home/ndiewald/Repositories/korap/KorAP-sandbox/KorAP-lucene-indexer/t/GOE/AGA/03828';
Nils Diewald32e30f02014-10-30 00:52:36 +000025
26ok(my $doc = KorAP::Document->new( path => $path . '/' ), 'Load Korap::Document');
27ok($doc->parse, 'Parse document');
28
29is($doc->text_sigle, 'GOE_AGA.03828', 'Correct text sigle');
30is($doc->doc_sigle, 'GOE_AGA', 'Correct document sigle');
31is($doc->corpus_sigle, 'GOE', 'Correct corpus sigle');
32
Nils Diewald90410c22014-11-03 21:04:05 +000033is($doc->title, 'Autobiographische Einzelheiten', 'Title');
34is($doc->pub_place, 'München', 'PubPlace');
35is($doc->pub_date, '19820000', 'Creation Date');
36ok(!$doc->sub_title, 'SubTitle');
Nils Diewalda96de622014-10-31 17:29:23 +000037is($doc->author, 'Goethe, Johann Wolfgang von', 'Author');
Nils Diewald90410c22014-11-03 21:04:05 +000038
39is($doc->publisher, 'Verlag C. H. Beck', 'Publisher');
40ok(!$doc->editor, 'Publisher');
41is($doc->text_type, 'Autobiographie', 'Correct Text Type');
42ok(!$doc->text_type_art, 'Correct Text Type Art');
43ok(!$doc->text_type_ref, 'Correct Text Type Ref');
44ok(!$doc->text_column, 'Correct Text Column');
45ok(!$doc->text_domain, 'Correct Text Domain');
46is($doc->creation_date, '18200000', 'Creation Date');
47is($doc->license, 'QAO-NC', 'License');
48is($doc->pages, '529-547', 'Pages');
49ok(!$doc->file_edition_statement, 'File Ed Statement');
50ok(!$doc->bibl_edition_statement, 'Bibl Ed Statement');
Nils Diewald32e30f02014-10-30 00:52:36 +000051is($doc->reference . "\n", <<'REF', 'Author');
52Goethe, Johann Wolfgang von: Autobiographische Einzelheiten, (Geschrieben bis 1832), In: Goethe, Johann Wolfgang von: Goethes Werke, Bd. 10, Autobiographische Schriften II, Hrsg.: Trunz, Erich. München: Verlag C. H. Beck, 1982, S. 529-547
53REF
Nils Diewald32e30f02014-10-30 00:52:36 +000054is($doc->language, 'de', 'Language');
Nils Diewald90410c22014-11-03 21:04:05 +000055
56is($doc->corpus_title, 'Goethes Werke', 'Correct Corpus title');
57ok(!$doc->corpus_sub_title, 'Correct Corpus Sub title');
58is($doc->corpus_author, 'Goethe, Johann Wolfgang von', 'Correct Corpus author');
59is($doc->corpus_editor, 'Trunz, Erich', 'Correct Corpus editor');
60
61is($doc->doc_title, 'Goethe: Autobiographische Schriften II, (1817-1825, 1832)',
62 'Correct Doc title');
63ok(!$doc->doc_sub_title, 'Correct Doc Sub title');
64ok(!$doc->doc_author, 'Correct Doc author');
65ok(!$doc->doc_editor, 'Correct Doc editor');
66
Nils Diewald32e30f02014-10-30 00:52:36 +000067
68# Tokenization
69use_ok('KorAP::Tokenizer');
70
Nils Diewald90410c22014-11-03 21:04:05 +000071
Nils Diewald32e30f02014-10-30 00:52:36 +000072my ($token_base_foundry, $token_base_layer) = (qw/OpenNLP Tokens/);
73
74# Get tokenization
75my $tokens = KorAP::Tokenizer->new(
76 path => $doc->path,
77 doc => $doc,
78 foundry => $token_base_foundry,
79 layer => $token_base_layer,
80 name => 'tokens'
81);
82ok($tokens, 'Token Object is fine');
83ok($tokens->parse, 'Token parsing is fine');
84
85my $output = decode_json( $tokens->to_json );
86
Nils Diewald5cd84d02014-11-01 17:25:12 +000087is(substr($output->{data}->{text}, 0, 100), 'Autobiographische einzelheiten Selbstschilderung (1) immer tätiger, nach innen und außen fortwirkend', 'Primary Data');
88is($output->{data}->{name}, 'tokens', 'tokenName');
89is($output->{data}->{tokenSource}, 'opennlp#tokens', 'tokenSource');
Nils Diewald32e30f02014-10-30 00:52:36 +000090is($output->{version}, '0.02', 'version');
Nils Diewald5cd84d02014-11-01 17:25:12 +000091is($output->{data}->{foundries}, '', 'Foundries');
92is($output->{data}->{layerInfos}, '', 'layerInfos');
93is($output->{data}->{stream}->[0]->[3], 's:Autobiographische', 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +000094
95is($output->{textSigle}, 'GOE_AGA.03828', 'Correct text sigle');
96is($output->{docSigle}, 'GOE_AGA', 'Correct document sigle');
97is($output->{corpusSigle}, 'GOE', 'Correct corpus sigle');
98
Nils Diewald90410c22014-11-03 21:04:05 +000099
Nils Diewald32e30f02014-10-30 00:52:36 +0000100is($output->{author}, 'Goethe, Johann Wolfgang von', 'Author');
Nils Diewald90410c22014-11-03 21:04:05 +0000101is($output->{pubPlace}, 'München', 'PubPlace');
102is($output->{pubDate}, '19820000', 'Creation Date');
103is($output->{title}, 'Autobiographische Einzelheiten', 'Title');
104ok(!exists $output->{subTitle}, 'subTitle');
105
106is($output->{publisher}, 'Verlag C. H. Beck', 'Publisher');
107ok(!exists $output->{editor}, 'Editor');
108is($output->{textType}, 'Autobiographie', 'Correct Text Type');
109ok(!exists $output->{textTypeArt}, 'Correct Text Type');
110ok(!exists $output->{textTypeRef}, 'Correct Text Type');
111ok(!exists $output->{textColumn}, 'Correct Text Type');
112ok(!exists $output->{textDomain}, 'Correct Text Type');
113is($output->{creationDate}, '18200000', 'Creation Date');
114is($output->{license}, 'QAO-NC', 'License');
115is($output->{pages}, '529-547', 'Pages');
116ok(!exists $output->{fileEditionStatement}, 'Correct Text Type');
117ok(!exists $output->{biblEditionStatement}, 'Correct Text Type');
Nils Diewald32e30f02014-10-30 00:52:36 +0000118is($output->{reference} . "\n", <<'REF', 'Author');
119Goethe, Johann Wolfgang von: Autobiographische Einzelheiten, (Geschrieben bis 1832), In: Goethe, Johann Wolfgang von: Goethes Werke, Bd. 10, Autobiographische Schriften II, Hrsg.: Trunz, Erich. München: Verlag C. H. Beck, 1982, S. 529-547
120REF
Nils Diewald32e30f02014-10-30 00:52:36 +0000121is($output->{language}, 'de', 'Language');
Nils Diewald32e30f02014-10-30 00:52:36 +0000122
Nils Diewald90410c22014-11-03 21:04:05 +0000123is($output->{corpusTitle}, 'Goethes Werke', 'Correct Corpus title');
124ok(!exists $output->{corpusSubTitle}, 'Correct Text Type');
125is($output->{corpusAuthor}, 'Goethe, Johann Wolfgang von', 'Correct Corpus title');
126is($output->{corpusEditor}, 'Trunz, Erich', 'Editor');
127
128is($output->{docTitle}, 'Goethe: Autobiographische Schriften II, (1817-1825, 1832)', 'Correct Corpus title');
129ok(!exists $output->{docSubTitle}, 'Correct Text Type');
130ok(!exists $output->{docAuthor}, 'Correct Text Type');
131ok(!exists $output->{docEditor}, 'Correct Text Type');
Nils Diewald32e30f02014-10-30 00:52:36 +0000132
133## Base
134$tokens->add('Base', 'Sentences');
135$tokens->add('Base', 'Paragraphs');
136
137$output = decode_json( $tokens->to_json );
138
Nils Diewald5cd84d02014-11-01 17:25:12 +0000139is($output->{data}->{foundries}, 'base base/paragraphs base/sentences', 'Foundries');
140is($output->{data}->{layerInfos}, 'base/s=spans', 'layerInfos');
141my $first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000142like($first_token, qr/s:Autobiographische/, 'data');
143like($first_token, qr/_0#0-17/, 'data');
Nils Diewald6d565072014-10-30 23:20:58 +0000144like($first_token, qr!<>:base/s:s#0-30\$<i>2<b>2!, 'data');
145like($first_token, qr!<>:base\/s:t#0-35199\$<i>5226<b>0!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000146
147## OpenNLP
148$tokens->add('OpenNLP', 'Sentences');
149
150$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000151is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000152 'base base/paragraphs base/sentences opennlp opennlp/sentences',
153 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000154is($output->{data}->{layerInfos}, 'base/s=spans opennlp/s=spans', 'layerInfos');
155$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000156like($first_token, qr!<>:opennlp/s:s#0-254\$<i>32!, 'data');
157
158$tokens->add('OpenNLP', 'Morpho');
159$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000160is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000161 'base base/paragraphs base/sentences opennlp opennlp/morpho opennlp/sentences',
162 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000163is($output->{data}->{layerInfos}, 'base/s=spans opennlp/p=tokens opennlp/s=spans', 'layerInfos');
164$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000165like($first_token, qr!opennlp/p:ADJA!, 'data');
166
167## Treetagger
168$tokens->add('TreeTagger', 'Sentences');
169$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000170is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000171 'base base/paragraphs base/sentences opennlp opennlp/morpho opennlp/sentences treetagger treetagger/sentences',
172 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000173is($output->{data}->{layerInfos}, 'base/s=spans opennlp/p=tokens opennlp/s=spans tt/s=spans', 'layerInfos');
174$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000175like($first_token, qr!<>:tt/s:s#0-179\$<i>21<b>2!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000176
177$tokens->add('TreeTagger', 'Morpho');
178$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000179is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000180 'base base/paragraphs base/sentences opennlp opennlp/morpho opennlp/sentences treetagger treetagger/morpho treetagger/sentences',
181 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000182is($output->{data}->{layerInfos}, 'base/s=spans opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens tt/s=spans', 'layerInfos');
183$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000184like($first_token, qr!tt/l:autobiographisch\$<b>165!, 'data');
185like($first_token, qr!tt/p:ADJA\$<b>165!, 'data');
186like($first_token, qr!tt/l:Autobiographische\$<b>89!, 'data');
187like($first_token, qr!tt/p:NN\$<b>89!, 'data');
188
Nils Diewald32e30f02014-10-30 00:52:36 +0000189## CoreNLP
190$tokens->add('CoreNLP', 'NamedEntities');
191$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000192is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000193 'base base/paragraphs base/sentences corenlp corenlp/namedentities opennlp opennlp/morpho opennlp/sentences treetagger treetagger/morpho treetagger/sentences',
194 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000195is($output->{data}->{layerInfos}, 'base/s=spans corenlp/ne=tokens opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens tt/s=spans', 'layerInfos');
Nils Diewald32e30f02014-10-30 00:52:36 +0000196
197diag "Missing test for NamedEntities";
198
199# Problematic:
Nils Diewald5cd84d02014-11-01 17:25:12 +0000200# diag Dumper $output->{data}->{stream}->[180];
201# diag Dumper $output->{data}->{stream}->[341];
Nils Diewald32e30f02014-10-30 00:52:36 +0000202
203$tokens->add('CoreNLP', 'Sentences');
204$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000205is($output->{data}->{foundries},
Nils Diewald32e30f02014-10-30 00:52:36 +0000206 'base base/paragraphs base/sentences corenlp corenlp/namedentities corenlp/sentences opennlp opennlp/morpho opennlp/sentences treetagger treetagger/morpho treetagger/sentences',
207 'Foundries');
Nils Diewald5cd84d02014-11-01 17:25:12 +0000208is($output->{data}->{layerInfos}, 'base/s=spans corenlp/ne=tokens corenlp/s=spans opennlp/p=tokens opennlp/s=spans tt/l=tokens tt/p=tokens tt/s=spans', 'layerInfos');
209$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000210like($first_token, qr!<>:corenlp/s:s#0-254\$<i>32!, 'data');
211
Nils Diewald32e30f02014-10-30 00:52:36 +0000212$tokens->add('CoreNLP', 'Morpho');
213$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000214like($output->{data}->{foundries}, qr!corenlp/morpho!, 'Foundries');
215like($output->{data}->{layerInfos}, qr!corenlp/p=tokens!, 'layerInfos');
216$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000217like($first_token, qr!corenlp/p:ADJA!, 'data');
218
Nils Diewald6d565072014-10-30 23:20:58 +0000219$tokens->add('CoreNLP', 'Constituency');
220$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000221like($output->{data}->{foundries}, qr!corenlp/constituency!, 'Foundries');
222like($output->{data}->{layerInfos}, qr!corenlp/c=spans!, 'layerInfos');
223$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6c44f422014-10-31 02:16:14 +0000224like($first_token, qr!<>:corenlp/c:NP#0-17\$<i>1<b>6!, 'data');
225like($first_token, qr!<>:corenlp/c:CNP#0-17\$<i>1<b>7!, 'data');
226like($first_token, qr!<>:corenlp/c:NP#0-17\$<i>1<b>8!, 'data');
227like($first_token, qr!<>:corenlp/c:AP#0-17\$<i>1<b>9!, 'data');
228like($first_token, qr!<>:corenlp/c:PP#0-50\$<i>3<b>4!, 'data');
229like($first_token, qr!<>:corenlp/c:S#0-50\$<i>3<b>5!, 'data');
230like($first_token, qr!<>:corenlp/c:PP#0-58\$<i>5<b>2!, 'data');
231like($first_token, qr!<>:corenlp/c:S#0-58\$<i>5<b>3!, 'data');
232like($first_token, qr!<>:corenlp/c:ROOT#0-254\$<i>32<b>0!, 'data');
233like($first_token, qr!<>:corenlp/c:S#0-254\$<i>32<b>1!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000234
235## Glemm
236$tokens->add('Glemm', 'Morpho');
237$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000238like($output->{data}->{foundries}, qr!glemm/morpho!, 'Foundries');
239like($output->{data}->{layerInfos}, qr!glemm/l=tokens!, 'layerInfos');
240$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000241like($first_token, qr!glemm/l:__autobiographisch!, 'data');
242like($first_token, qr!glemm/l:\+_Auto!, 'data');
243like($first_token, qr!glemm/l:\+_biographisch!, 'data');
244like($first_token, qr!glemm/l:\+\+Biograph!, 'data');
245like($first_token, qr!glemm/l:\+\+-isch!, 'data');
246
Nils Diewald32e30f02014-10-30 00:52:36 +0000247## Connexor
248$tokens->add('Connexor', 'Sentences');
249$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000250like($output->{data}->{foundries}, qr!connexor/sentences!, 'Foundries');
251like($output->{data}->{layerInfos}, qr!cnx/s=spans!, 'layerInfos');
252$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000253like($first_token, qr!<>:cnx/s:s#0-179\$<i>21<b>2!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000254
255$tokens->add('Connexor', 'Morpho');
256$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000257like($output->{data}->{foundries}, qr!connexor/morpho!, 'Foundries');
258like($output->{data}->{layerInfos}, qr!cnx/p=tokens!, 'layerInfos');
259like($output->{data}->{layerInfos}, qr!cnx/l=tokens!, 'layerInfos');
260like($output->{data}->{layerInfos}, qr!cnx/m=tokens!, 'layerInfos');
261$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000262like($first_token, qr!cnx/l:autobiografisch!, 'data');
263like($first_token, qr!cnx/p:A!, 'data');
264
265$tokens->add('Connexor', 'Phrase');
266$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000267like($output->{data}->{foundries}, qr!connexor/phrase!, 'Foundries');
268like($output->{data}->{layerInfos}, qr!cnx/c=spans!, 'layerInfos');
269$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000270like($first_token, qr!<>:cnx/c:np#0-30\$<i>2!, 'data');
271
Nils Diewald32e30f02014-10-30 00:52:36 +0000272$tokens->add('Connexor', 'Syntax');
273$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000274like($output->{data}->{foundries}, qr!connexor/syntax!, 'Foundries');
275like($output->{data}->{layerInfos}, qr!cnx/syn=tokens!, 'layerInfos');
276$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald32e30f02014-10-30 00:52:36 +0000277like($first_token, qr!cnx/syn:\@PREMOD!, 'data');
278
279## Mate
280$tokens->add('Mate', 'Morpho');
281$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000282like($output->{data}->{foundries}, qr!mate/morpho!, 'Foundries');
283like($output->{data}->{layerInfos}, qr!mate/p=tokens!, 'layerInfos');
284like($output->{data}->{layerInfos}, qr!mate/l=tokens!, 'layerInfos');
285like($output->{data}->{layerInfos}, qr!mate/m=tokens!, 'layerInfos');
286$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000287like($first_token, qr!mate/l:autobiographisch!, 'data');
288like($first_token, qr!mate/p:NN!, 'data');
289like($first_token, qr!mate/m:case:nom!, 'data');
290like($first_token, qr!mate/m:number:pl!, 'data');
291like($first_token, qr!mate/m:gender:\*!, 'data');
292
293
Nils Diewald6c44f422014-10-31 02:16:14 +0000294diag "No test for mate dependency";
Nils Diewald6d565072014-10-30 23:20:58 +0000295
296## XIP
297$tokens->add('XIP', 'Sentences');
298$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000299like($output->{data}->{foundries}, qr!xip/sentences!, 'Foundries');
300like($output->{data}->{layerInfos}, qr!xip/s=spans!, 'layerInfos');
301$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000302like($first_token, qr!<>:xip/s:s#0-179\$<i>21!, 'data');
303
304$tokens->add('XIP', 'Morpho');
305$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000306like($output->{data}->{foundries}, qr!xip/morpho!, 'Foundries');
307like($output->{data}->{layerInfos}, qr!xip/l=tokens!, 'layerInfos');
308like($output->{data}->{layerInfos}, qr!xip/p=tokens!, 'layerInfos');
309$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000310like($first_token, qr!<>:xip/s:s#0-179\$<i>21!, 'data');
311
312
Nils Diewald6d565072014-10-30 23:20:58 +0000313$tokens->add('XIP', 'Constituency');
314$output = decode_json( $tokens->to_json );
Nils Diewald5cd84d02014-11-01 17:25:12 +0000315like($output->{data}->{foundries}, qr!xip/constituency!, 'Foundries');
316like($output->{data}->{layerInfos}, qr!xip/c=spans!, 'layerInfos');
317$first_token = join('||', @{$output->{data}->{stream}->[0]});
Nils Diewald6d565072014-10-30 23:20:58 +0000318like($first_token, qr!<>:xip/c:NP#0-17\$<i>1<b>1!, 'data');
319like($first_token, qr!<>:xip/c:AP#0-17\$<i>1<b>2!, 'data');
320like($first_token, qr!<>:xip/c:ADJ#0-17\$<i>1<b>3!, 'data');
321like($first_token, qr!<>:xip/c:TOP#0-179\$<i>21<b>0!, 'data');
Nils Diewald32e30f02014-10-30 00:52:36 +0000322
Nils Diewald6c44f422014-10-31 02:16:14 +0000323diag "No test for xip dependency";
Nils Diewald32e30f02014-10-30 00:52:36 +0000324
Nils Diewald5cd84d02014-11-01 17:25:12 +0000325# diag Dumper $output->{data}->{stream}->[0];
Nils Diewald6c44f422014-10-31 02:16:14 +0000326
327# print timestr(timediff(Benchmark->new, $t));
Nils Diewald32e30f02014-10-30 00:52:36 +0000328
Nils Diewald32e30f02014-10-30 00:52:36 +0000329done_testing;
330__END__