Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Testing at the right granularity

by polettix (Vicar)
on Apr 19, 2005 at 17:05 UTC ( [id://449339]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       my $result = function_under_test();
       my $expected = "ciao a tutti";
    
  2. or download this
       is($result, $expected, "strings are equal");
    
  3. or download this
       my @result = split //, $result;
       my @expected = split //, $expected;
    ...
       for (my $i = 0; $i < @expected; ++$i) {
          is($result[$i], $expected[$i], "$i-th char match");
       }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found