diff options
author | Michiel Beijen <mb@x14.nl> | 2021-12-03 07:56:08 +0100 |
---|---|---|
committer | Michiel Beijen <mb@x14.nl> | 2021-12-04 15:55:55 +0100 |
commit | 70cbce258a2f0c602dd4e986bb1d31ec3d459158 (patch) | |
tree | cac900e71152888dba2c76b0974db2d87ab49e09 /lib/Getopt | |
parent | e728f790bcefcaf1d8b42e2f7ee16a9125f0af22 (diff) | |
download | perl-70cbce258a2f0c602dd4e986bb1d31ec3d459158.tar.gz |
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
Diffstat (limited to 'lib/Getopt')
-rw-r--r-- | lib/Getopt/Std.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Getopt/Std.t b/lib/Getopt/Std.t index 746d5de321..b03f07bd1f 100644 --- a/lib/Getopt/Std.t +++ b/lib/Getopt/Std.t @@ -8,7 +8,7 @@ BEGIN { use strict; use warnings; -use Test::More tests => 22; +use Test::More; use Getopt::Std; our ($warning, $opt_f, $opt_i, $opt_o, $opt_x, $opt_y, %opt); @@ -92,3 +92,5 @@ my $expected; "getopt: single switch; switch expected argument, none provided; value undef"); undef %opt; } + +done_testing(); |