);
my $s;
-ok( $s = $t->add_stemma( 't/data/simple.dot' ), "Added a simple stemma" );
+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" );
is( $t->stemma, $s, "Stemma is the right one" );
);
my $tradition = Text::Tradition->new( @args );
- my $stemma = $tradition->add_stemma( $dotfile );
+ my $stemma = $tradition->add_stemma( dotfile => $dotfile );
$d->save_tradition( $tradition );
foreach my $id ( $d->traditions ) {
$uuid = $d->save( $t );
ok( $uuid, "Saved test tradition" );
- my $s = $t->add_stemma( 't/data/simple.dot' );
+ my $s = $t->add_stemma( dotfile => 't/data/simple.dot' );
ok( $d->save( $t ), "Updated tradition with stemma" );
is( $d->tradition( $uuid ), $t, "Correct tradition returned for id" );
is( $d->tradition( $uuid )->stemma, $s, "...and it has the correct stemma" );
$c->add_relationship( 'n8', 'n13', { 'type' => 'spelling' } );
$c->calculate_ranks();
-my $stemma = $tradition->add_stemma( 't/data/simple.dot' );
+my $stemma = $tradition->add_stemma( dotfile => 't/data/simple.dot' );
# Test for object creation
ok( $stemma->isa( 'Text::Tradition::Stemma' ), 'Got the right sort of object' );
);
my $s;
-ok( $s = $t->add_stemma( 't/data/simple.dot' ), "Added a simple stemma" );
+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" );
is( $t->stemma, $s, "Stemma is the right one" );
}
$uuid = $d->save( $t );
ok( $uuid, "Saved test tradition" );
- my $s = $t->add_stemma( 't/data/simple.dot' );
+ my $s = $t->add_stemma( dotfile => 't/data/simple.dot' );
ok( $d->save( $t ), "Updated tradition with stemma" );
is( $d->tradition( $uuid ), $t, "Correct tradition returned for id" );
is( $d->tradition( $uuid )->stemma, $s, "...and it has the correct stemma" );