# Cope with witness sigil changes
sub rename_witness {
my( $self, $sig, $newsig ) = @_;
- $DB::single = 1;
my $wit = $self->witness( $sig );
$self->throw( "No such witness $sig" ) unless $wit;
$self->throw( "Cannot rename witness that has already been collated" )
$s->rename_witness( 'D', 'Invalid Sigil' );
ok( 0, "Renamed witness with bad sigil" );
} catch ( Text::Tradition::Error $e ) {
- print STDERR $e->message . "\n";
is( $s->witness('D'), $wit_d, "Held onto witness during bad rename" );
}
$s->rename_witness( 'D', 'Invalid Sigil' );
ok( 0, "Renamed witness with bad sigil" );
} catch ( Text::Tradition::Error $e ) {
- print STDERR $e->message . "\n";
is( $s->witness('D'), $wit_d, "Held onto witness during bad rename" );
}