Subject: | [PATCH] Modernize the test suite |
Date: | Sat, 9 Feb 2008 18:07:14 -0200 |
To: | "Alex Bowley" <kilinrax [...] cpan.org>, bug-html-strip <bug-HTML-Strip [...] rt.cpan.org> |
From: | "Adriano Ferreira" <a.r.ferreira [...] gmail.com> |
The attached patch modernizes the test suite of HTML-Strip (the script
test.pl) into a new "t/basic.t" which uses Test::More.
The advantages are:
* Test::More has an API which is more clear and intuitive
(for instance, &is rather than &ok)
* It is good to catch problems
(for example, the plan of test.pl said 17 tests and Test was ok with it,
but actually these are 22 tests and Test::More is stricter)
The patch is just
* a rewrite of "test.pl" into "t/basic.t" (straightforward)
* a more strict Makefile.PL declaring prereqs more explicitly (even core ones)
* the corresponding change in MANIFEST
Best,
Adriano Ferreira
Message body is not shown because sender requested not to inline it.