keep from deleting lacuna nodes prematurely
[scpubgit/stemmatology.git] / t / text_tradition_parser_tabular.t
CommitLineData
3b853983 1#!/usr/bin/perl -w
2
3use strict;
4use Test::More 'no_plan';
5$| = 1;
6
7
8
9# =begin testing
10{
11use Text::Tradition;
12binmode STDOUT, ":utf8";
13binmode STDERR, ":utf8";
14eval { no warnings; binmode $DB::OUT, ":utf8"; };
15
16my $csv = 't/data/florilegium.csv';
17my $t = Text::Tradition->new(
18 'name' => 'inline',
19 'input' => 'Tabular',
20 'file' => $csv,
21 'sep_char' => ',',
22 );
23
24is( ref( $t ), 'Text::Tradition', "Parsed florilegium CSV file" );
25
26### TODO Check these figures
27if( $t ) {
1d310495 28 is( scalar $t->collation->readings, 312, "Collation has all readings" );
29 is( scalar $t->collation->paths, 363, "Collation has all paths" );
3b853983 30 is( scalar $t->witnesses, 13, "Collation has all witnesses" );
31}
32}
33
34
35
36
371;