mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 16:39:36 +00:00
Having to count tests is annoying for maintainers. Also, manually updating count tests is problematic when multiple people are working on the same code; it causes merge conflicts and recounts. done_testing() is available since Test::More 0.88 which was released in 2009. This commit changes all tests under lib/ that use Test::More and were planning the number of tests. Michiel Beijen is now a Perl author
16 lines
324 B
Perl
16 lines
324 B
Perl
#!./perl
|
|
|
|
# These tests are not complete. Patches welcome.
|
|
|
|
use Test::More;
|
|
|
|
BEGIN {use_ok( 'Tie::Hash' )};
|
|
|
|
# these are "abstract virtual" parent methods
|
|
for my $method (qw( TIEHASH EXISTS )) {
|
|
eval { Tie::Hash->$method() };
|
|
like( $@, qr/doesn't define an? $method/, "croaks on inherited $method()" );
|
|
}
|
|
|
|
done_testing();
|