X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ftext_tradition.t;h=2c7be1b5afa39b29fcf290a51b8f7f23f82b55d8;hb=6be2fbcb9418e57bb96469526834721118fb8da0;hp=b48db2968caa3c3bb844a195df74f911e6f3a9ef;hpb=e0d617e67dccc575f17f29b833b7327a1dd5d92a;p=scpubgit%2Fstemmatology.git diff --git a/t/text_tradition.t b/t/text_tradition.t index b48db29..2c7be1b 100644 --- a/t/text_tradition.t +++ b/t/text_tradition.t @@ -33,7 +33,7 @@ if( $wit_a ) { is( $s->witness('X'), undef, "There is no witness X" ); ok( !exists $s->{'witnesses'}->{'X'}, "Witness key X not created" ); -my $wit_d = $s->add_witness( 'sigil' => 'D' ); +my $wit_d = $s->add_witness( 'sigil' => 'D', 'sourcetype' => 'collation' ); is( ref( $wit_d ), 'Text::Tradition::Witness', "new witness created" ); is( $wit_d->sigil, 'D', "witness has correct sigil" ); is( scalar $s->witnesses, 4, "object now has four witnesses" ); @@ -57,6 +57,7 @@ my $t = Text::Tradition->new( 'file' => 't/data/simple.txt', ); +is( $t->stemma_count, 0, "No stemmas added yet" ); my $s; ok( $s = $t->add_stemma( dotfile => 't/data/simple.dot' ), "Added a simple stemma" ); is( ref( $s ), 'Text::Tradition::Stemma', "Got a stemma object returned" );