fionbarr has asked for the wisdom of the Perl Monks concerning the following question:
Obviously there is more to it than this! Can someone send me a real-world example so I can see what a 'real' situation looks like?sub hello_world { return "Hello world!"; } sub get_number { return int(rand(1000)); } ok( hello_world( ) eq "Hello world!", "My Testcase 1" ); ok( get_number( ) > 0, "My Testcase 2" );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: why Test::More?
by Your Mother (Archbishop) on Sep 10, 2013 at 13:46 UTC | |
by Anonymous Monk on Sep 10, 2013 at 15:08 UTC | |
Re: why Test::More?
by MidLifeXis (Monsignor) on Sep 10, 2013 at 13:51 UTC | |
by Anonymous Monk on Sep 10, 2013 at 13:58 UTC | |
by MidLifeXis (Monsignor) on Sep 10, 2013 at 14:10 UTC | |
by tobyink (Canon) on Sep 16, 2013 at 13:00 UTC | |
by Anonymous Monk on Sep 10, 2013 at 16:27 UTC | |
Re: why Test::More?
by choroba (Cardinal) on Sep 10, 2013 at 13:15 UTC | |
by Anonymous Monk on Sep 10, 2013 at 14:28 UTC | |
by kcott (Archbishop) on Sep 11, 2013 at 05:13 UTC | |
by runrig (Abbot) on Sep 10, 2013 at 16:29 UTC | |
by Anonymous Monk on Sep 11, 2013 at 01:45 UTC | |
Re: why Test::More?
by hippo (Archbishop) on Sep 10, 2013 at 13:16 UTC | |
Re: why Test::More?
by McDarren (Abbot) on Sep 10, 2013 at 15:51 UTC | |
Re: why Test::More?
by locked_user sundialsvc4 (Abbot) on Sep 10, 2013 at 18:39 UTC |