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

Re^2: Testing at the right granularity

by polettix (Vicar)
on Apr 19, 2005 at 17:05 UTC ( #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
Node Status?
node history
Node Type: note [id://449339]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2020-11-30 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?