Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Needing help on testing

by roboticus (Chancellor)
on Oct 29, 2018 at 21:56 UTC ( #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
Node Status?
node history
Node Type: note [id://1224888]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2019-10-22 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?