blob: 04c216c651c75b067deea5d37b2d2dc358b3eda5 [file] [log] [blame]
Akronb1f7dcc2016-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;
8use lib 't/index';
9use 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
Akron627a80a2016-01-29 19:38:18 +010017diag $data;
18
Akronb1f7dcc2016-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