I like starting a test script with
use_ok 'Acme::Stuff';What if I want to make sure I'm testing a newer version? The client code will say
use Acme::Stuff '1.1.2';but I can't seem to say
use_ok 'Acme::Stuff' '1.1.2';I can write a second test, something like
cmp_ok $Acme::Stuff::VERSION, '>=', '1.1.2';Anybody have better advice?
Update (Thanksgiving Day in U.S.A.):
Thanks for the replies, all of which are helpful.
In reply to use_ok with version number by Narveson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |