Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Further adventures with testing

by trs80 (Priest)
on Sep 26, 2002 at 02:06 UTC ( #200785=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    use Test::More;  # you may need to install it 
    
    ...
    ok( !@test_these , 'no more @test_these!' ); 
    
    1; 
    
  2. or download this
     
    
    sub get_file_contents { 
    ...
      
    } 
    
  3. or download this
     
    use Test::More tests => 3; 
    use My::Module; 
    ...
    ok( $content =~ /string/ , "\$content contains string!" ); 
    
    1; 
    
  4. or download this
     
    
    sub get_file_contents { 
    ...
        return wantarray ? ($contents,$file) : $contents; 
      
    } 
    
  5. or download this
     
    
    use Test::More tests => 13; 
    ...
    
    1; 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (16)
As of 2014-07-30 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (240 votes), past polls