Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Writing a Test Harness

by chrestomanci (Priest)
on Mar 31, 2011 at 14:43 UTC ( [id://896640]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Test::Most;
    
    is( add_numbers(2, 2), 4, 'Correctly added two numbers' );
    throws_ok( sub{add_numbers(2, 'string')}, qr/not a number/, 'Error wit
    +h non number');
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found