Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Needing help on testing

by roboticus (Chancellor)
on Oct 29, 2018 at 21:56 UTC ( [id://1224888]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!env perl
    #
    ...
        push @primes, $val if $val > 1;
        return @primes;
    }
    
  2. or download this
    sub do_tests {
        use Test::More;
    ...
        }
        done_testing();
    }
    
  3. or download this
    if ($num eq "-test") {
        do_tests();
    ...
    else {
        print "$num: ", join(", ", factors($num)), "\n";
    }
    
  4. or download this
    $ perl pm_1224882.pl 1234
    1234: 1, 2, 617
    ...
    ok 5
    ok 6
    1..6
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found