blob: 620b0ceab09ea5efe8dbcc9cb693354ea067feb6 [file] [log] [blame]
Akron194be542016-01-21 12:52:43 +01001#!/usr/bin/env perl
2use strict;
3use warnings;
4use utf8;
5use Test::More skip_all => 'Not yet implemented';
6use Scalar::Util qw/weaken/;
7use Data::Dumper;
Akron151676d2016-03-14 20:12:14 +01008use lib 't/annotation';
Akron194be542016-01-21 12:52:43 +01009use TestInit;
10
11ok(my $tokens = TestInit::tokens('0002'), 'Parse tokens');
12
13ok($tokens->add('Malt', 'dependency'), 'Add Structure');
14
15my $data = $tokens->to_data->{data};
16
Akron14ca9f02016-01-29 19:38:18 +010017diag $data;
18
Akron194be542016-01-21 12:52:43 +010019done_testing;
20__END__
21
22
23like($data->{foundries}, qr!xip/sentences!, 'data');
24
25is($data->{stream}->[0]->[1], '-:xip/sentences$<i>1', 'Number of paragraphs');
26is($data->{stream}->[0]->[0], '-:tokens$<i>18', 'Number of tokens');
27is($data->{stream}->[0]->[2], '<>:xip/s:s$<b>64<i>0<i>129<i>17<b>0', 'Text');
28is($data->{stream}->[0]->[3], '_0$<i>0<i>3', 'Position');
29is($data->{stream}->[-1]->[0], '_17$<i>124<i>128', 'Position');
30