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");
       }