4 use Test::More 'no_plan';
12 use Text::Tradition::Analysis qw/ run_analysis analyze_variant_location /;
14 my $datafile = 't/data/florilegium_tei_ps.xml';
15 my $tradition = Text::Tradition->new( 'input' => 'TEI',
17 'file' => $datafile );
18 my $s = $tradition->add_stemma( 'dotfile' => 't/data/florilegium.dot' );
19 is( ref( $s ), 'Text::Tradition::Stemma', "Added stemma to tradition" );
21 my $data = run_analysis( $tradition );
22 # TODO Check genealogical count
23 is( $data->{'genealogical_count'}, 13, "Got right genealogical count" );
24 is( $data->{'conflict_count'}, 16, "Got right conflict count" );
25 is( $data->{'variant_count'}, 28, "Got right total variant number" );