Changeset 2218


Ignore:
Timestamp:
12/28/08 08:59:38 (3 years ago)
Author:
szabgab
Message:

add more example scripts for beginner related errors with TODO tests

Location:
trunk/Padre/t
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/t/75-perl-beginner.t

    r2213 r2218  
    2020BEGIN { 
    2121    %tests = ( 
    22     'split1.pl'  => "The second parameter of split is a string, not an array", 
    23     'split2.pl'  => "The second parameter of split is a string, not an array", 
    24     'warning.pl' => "You need to write use warnings (with an s at the end) and not use warning.", 
     22    'split1.pl'                    => "The second parameter of split is a string, not an array", 
     23    'split2.pl'                    => "The second parameter of split is a string, not an array", 
     24    'warning.pl'                   => "You need to write use warnings (with an s at the end) and not use warning.", 
     25    'boolean_expressions_or.pl'    => 'TODO', 
     26    'boolean_expressions_pipes.pl' => 'TODO', 
     27    'match_default_scalar.pl'      => 'TODO', 
     28    'chomp.pl'                     => 'TODO', 
     29    'substitute_in_map.pl'         => 'TODO', 
    2530    ); 
    2631} 
    2732 
    2833foreach my $file (keys %tests) { 
     34    if ($tests{$file} eq 'TODO') { 
     35        TODO: { 
     36            local $TODO = "$file not yet implemented"; 
     37            ok(0); 
     38            ok(0); 
     39        } 
     40        next; 
     41    } 
     42 
    2943    my $data = slurp (File::Spec->catfile('t', 'files', 'beginner', $file)); 
    3044    ok(! defined($b->check($data)), $file); 
Note: See TracChangeset for help on using the changeset viewer.