Narveson has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use_ok with version number
by moritz (Cardinal) on Nov 25, 2009 at 22:59 UTC | |
|
Re: use_ok with version number
by almut (Canon) on Nov 25, 2009 at 22:38 UTC | |
by happy.barney (Friar) on Nov 26, 2009 at 11:19 UTC | |
by Narveson (Chaplain) on Nov 27, 2009 at 05:20 UTC | |
by happy.barney (Friar) on Nov 27, 2009 at 08:43 UTC | |
|
Re: use_ok with version number
by zwon (Abbot) on Nov 26, 2009 at 22:55 UTC |