blob: 8ab6414d4a728298be678d5daf9ab795363580a6 [file] [log] [blame]
Akronb2636cf2016-01-26 18:42:44 +01001use strict;
2use warnings;
3use Test::More;
4use File::Basename 'dirname';
5use File::Spec::Functions 'catdir';
6use Data::Dumper;
7use KorAP::Tokenizer;
8use KorAP::Document;
9use utf8;
10
11my $path = catdir(dirname(__FILE__), 'TEST', 'BSP', 1);
12
13ok(my $doc = KorAP::Document->new(
14 path => $path . '/'
15), 'Create Document');
16
17ok($doc->parse, 'Parse document');
18
19like($doc->path, qr!$path/!, 'Path');
20
21# Metdata
22is($doc->text_sigle, 'TEST_BSP.1', 'ID-text');
23is($doc->doc_sigle, 'TEST_BSP', 'ID-doc');
24is($doc->corpus_sigle, 'TEST', 'ID-corpus');
25
26diag 'TODO: Parse meta';
27
28done_testing;