Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Further adventures with testing

by trs80 (Priest)
on Sep 26, 2002 at 02:06 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200785]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found