Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Testing for Beginners

by stvn (Monsignor)
on Apr 08, 2004 at 21:43 UTC ( [id://343771]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyModule;
    
    ...
    1;
    
    __END__
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    # now test "add" works as expected
    cmp_ok(MyModule::add(1, 1), '==', 2, '... 1 added to 1 is 2');
    
  3. or download this
    prove test.t
    
  4. or download this
    test....ok                                                            
    +       
    All tests successful.
    Files=1, Tests=3,  0 wallclock secs ( 0.15 cusr +  0.05 csys =  0.20 C
    +PU)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found