Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 imbibing at the Monastery: (11)
As of 2015-07-02 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls