Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Testing a XS module

by chargrill (Parson)
on Aug 29, 2007 at 16:31 UTC ( [id://635843]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Test::More tests => 4;
    BEGIN {use_ok('Mytest')}
    ...
    is( Mytest::is_even(0), 1, 'is_even says 0 is even' );
    is( Mytest::is_even(1), 0, 'is_even says 1 is not even' );
    is( Mytest::is_even(2), 1, 'is_even says 2 is even' );
    
  2. or download this
    s**lil*;  $*=join'',sort split q**;  s;.*;grr; &&s+(.(.)).+$2$1+; $; =
    qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-23 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found