Akron | 126e33c | 2016-01-07 21:08:45 +0100 | [diff] [blame] | 1 | #!/usr/bin/env perl |
| 2 | use strict; |
| 3 | use warnings; |
| 4 | use utf8; |
Akron | d3a0bad | 2016-02-26 14:07:58 +0100 | [diff] [blame] | 5 | use Test::More; |
Akron | 126e33c | 2016-01-07 21:08:45 +0100 | [diff] [blame] | 6 | use Scalar::Util qw/weaken/; |
| 7 | use Data::Dumper; |
Akron | 151676d | 2016-03-14 20:12:14 +0100 | [diff] [blame] | 8 | use lib 't/annotation'; |
Akron | 11ef51d | 2016-01-18 19:07:56 +0100 | [diff] [blame] | 9 | use TestInit; |
Akron | 126e33c | 2016-01-07 21:08:45 +0100 | [diff] [blame] | 10 | |
Akron | 11ef51d | 2016-01-18 19:07:56 +0100 | [diff] [blame] | 11 | ok(my $tokens = TestInit::tokens('0001'), 'Parse tokens'); |
Akron | 126e33c | 2016-01-07 21:08:45 +0100 | [diff] [blame] | 12 | |
Akron | 14ca9f0 | 2016-01-29 19:38:18 +0100 | [diff] [blame] | 13 | ok($tokens->add('Mate', 'Dependency'), 'Add Dependency'); |
Akron | 126e33c | 2016-01-07 21:08:45 +0100 | [diff] [blame] | 14 | |
Akron | 14ca9f0 | 2016-01-29 19:38:18 +0100 | [diff] [blame] | 15 | my $data = $tokens->to_data->{data}->{stream}; |
Akron | 194be54 | 2016-01-21 12:52:43 +0100 | [diff] [blame] | 16 | |
Akron | d19e275 | 2017-11-16 15:48:26 +0100 | [diff] [blame] | 17 | is($data->[4]->[-1], 's:lädt', 'Surface form'); |
Akron | 75ba57d | 2016-03-07 23:36:27 +0100 | [diff] [blame] | 18 | is($data->[4]->[1], '<:mate/d:--$<b>32<i>4', '< rel 1 (unary)'); |
| 19 | is($data->[4]->[2], '>:mate/d:--$<b>32<i>4', '> rel 1 (unary)'); |
Akron | 88000f9 | 2016-03-05 12:39:57 +0100 | [diff] [blame] | 20 | #is($data->[4]->[8], 'mate/d:&&&$<b>128<s>1', 'token for rel 1 (unary)'); |
Akron | 14ca9f0 | 2016-01-29 19:38:18 +0100 | [diff] [blame] | 21 | |
Akron | d19e275 | 2017-11-16 15:48:26 +0100 | [diff] [blame] | 22 | is($data->[1]->[-1], 's:letzten', 'Surface'); |
Akron | 75ba57d | 2016-03-07 23:36:27 +0100 | [diff] [blame] | 23 | is($data->[1]->[0], '>:mate/d:NK$<b>32<i>3', '> rel 2 (term-to-term)'); |
Akron | 88000f9 | 2016-03-05 12:39:57 +0100 | [diff] [blame] | 24 | #is($data->[1]->[3], 'mate/d:&&&$<b>128<s>1', '< rel 2 (term-to-term)'); |
| 25 | |
Akron | d19e275 | 2017-11-16 15:48:26 +0100 | [diff] [blame] | 26 | is($data->[3]->[-1], 's:Anlass', 'Surface'); |
Akron | 75ba57d | 2016-03-07 23:36:27 +0100 | [diff] [blame] | 27 | is($data->[3]->[1], '<:mate/d:NK$<b>32<i>1', '< rel 2 (term-to-term)'); |
Akron | 88000f9 | 2016-03-05 12:39:57 +0100 | [diff] [blame] | 28 | #is($data->[3]->[5], 'mate/d:&&&$<b>128<s>1', '< rel 2 (term-to-term)'); |
Akron | d3a0bad | 2016-02-26 14:07:58 +0100 | [diff] [blame] | 29 | |
Akron | 126e33c | 2016-01-07 21:08:45 +0100 | [diff] [blame] | 30 | |
| 31 | done_testing; |
Akron | 126e33c | 2016-01-07 21:08:45 +0100 | [diff] [blame] | 32 | __END__ |
| 33 | |