perl/lib/Tie/Hash.t
Michiel Beijen 70cbce258a do not count tests, instead use done_testing()
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
2021-12-04 15:55:55 +01:00

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();