4 use Test::More 'no_plan';
13 my $t = Text::Tradition->new(
14 'name' => 'simple test',
16 'file' => 't/data/simple.txt',
18 is( $t->stemma_count, 0, "No stemmas added yet" );
20 ok( $s = $t->add_stemma( dotfile => 't/data/simple.dot' ), "Added a simple stemma" );
21 is( ref( $s ), 'Text::Tradition::Stemma', "Got a stemma object returned" );
22 is( $t->stemma_count, 1, "Tradition claims to have a stemma" );
23 is( $t->stemma(0), $s, "Tradition hands back the right stemma" );