reinstate useful_variant; better handling of AC wits
[scpubgit/stemmatology.git] / t / text_tradition_analysis.t
CommitLineData
7f52eac8 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;
12use Text::Tradition::Analysis qw/ run_analysis analyze_variant_location /;
13
14my $datafile = 't/data/florilegium_tei_ps.xml';
15my $tradition = Text::Tradition->new( 'input' => 'TEI',
16 'name' => 'test0',
17 'file' => $datafile );
18my $s = $tradition->add_stemma( 'dotfile' => 't/data/florilegium.dot' );
19is( ref( $s ), 'Text::Tradition::Stemma', "Added stemma to tradition" );
20
21my $data = run_analysis( $tradition );
5be0cdeb 22# TODO Check genealogical count
23is( $data->{'genealogical_count'}, 13, "Got right genealogical count" );
24is( $data->{'conflict_count'}, 16, "Got right conflict count" );
25is( $data->{'variant_count'}, 28, "Got right total variant number" );
7f52eac8 26}
27
28
29
30
311;