doy / try-tiny

minimal try/catch with proper preservation of $@
http://metacpan.org/release/Try-Tiny
10 stars 15 forks source link

Avoid dependency on Test::More 0.88 #10

Closed pghmcfc closed 11 years ago

pghmcfc commented 11 years ago

The use of done_testing implies a dependency of Test::More 0.88 or later. To avoid this, and provide compatibility with older versions, remove done_testing and supply a test plan.

To ensure that the end of the test is reached (rather than exiting early due to an error), I added an additional "pass" test to bump the test count.

doy commented 11 years ago

Thanks!