Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Change package name on the fly? (just test)

by tye (Sage)
on Sep 06, 2012 at 00:48 UTC ( #991986=note: print w/ replies, xml ) Need Help??


in reply to Change package name on the fly?

ok( Foo::Bar::­baz('wibbl­e') eq Old::Foo::­Bar::baz('­wibble'),'­baz +is compatible­');

I'd just write:

is( baz('wibble'), 'wibbled' );

And then run the test suite against both versions. A test failing against the old version of the module might mean that you have to fixchange the test (if you really mean "backward compatible" as in "bug-for-bug compatible").

- tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2016-08-27 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (378 votes). Check out past polls.