Changeset 8558


Ignore:
Timestamp:
10/03/09 04:07:34 (2 years ago)
Author:
Sewi
Message:

Perl tidy

Location:
trunk/Padre
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Document/Perl/Beginner.pm

    r8557 r8558  
    7070    my $error_start_position = length($prematch); 
    7171 
    72     my $line = $editor->LineFromPosition( $error_start_position ); 
     72    my $line = $editor->LineFromPosition($error_start_position); 
    7373    ++$line; # Editor starts counting at 0 
    7474 
  • trunk/Padre/t/75-perl-beginner.t

    r8556 r8558  
    88 
    99sub LineFromPosition { 
    10  return 0; 
     10    return 0; 
    1111} 
    1212 
     
    1414 
    1515sub gettext { 
    16  return $_[0]; 
     16    return $_[0]; 
    1717} 
    1818 
     
    2626 
    2727my %TEST = ( 
    28     'split1.pl'                    => "Line 1: The second parameter of split is a string, not an array", 
    29     'split2.pl'                    => "Line 1: The second parameter of split is a string, not an array", 
    30     'warning.pl'                   => "Line 1: You need to write use warnings (with an s at the end) and not use warning.", 
    31     'boolean_expressions_or.pl'    => 'TODO', 
     28    'split1.pl'                 => "Line 1: The second parameter of split is a string, not an array", 
     29    'split2.pl'                 => "Line 1: The second parameter of split is a string, not an array", 
     30    'warning.pl'                => "Line 1: You need to write use warnings (with an s at the end) and not use warning.", 
     31    'boolean_expressions_or.pl' => 'TODO', 
    3232    'boolean_expressions_pipes.pl' => 'TODO', 
    3333    'match_default_scalar.pl'      => 'TODO', 
     
    3737    'return_stronger_than_or.pl'   => 'TODO', 
    3838    'grep_always_true.pl'          => 'TODO', 
    39     'my_argv.pl' => 'TODO',                                          # "my" variable @ARGV masks global variable at ... 
     39    'my_argv.pl'                   => 'TODO', # "my" variable @ARGV masks global variable at ... 
    4040    'else_if.pl' => "Line 1: 'else if' is wrong syntax, correct if 'elsif'.", 
    4141 
     
    4848 
    4949use Padre::Document::Perl::Beginner; 
    50 my $b = Padre::Document::Perl::Beginner->new(document => {editor => bless {},'local::t75'}); 
     50my $b = Padre::Document::Perl::Beginner->new( document => { editor => bless {}, 'local::t75' } ); 
    5151 
    5252isa_ok $b, 'Padre::Document::Perl::Beginner'; 
Note: See TracChangeset for help on using the changeset viewer.