Changeset 8558
- Timestamp:
- 10/03/09 04:07:34 (2 years ago)
- Location:
- trunk/Padre
- Files:
-
- 2 edited
-
lib/Padre/Document/Perl/Beginner.pm (modified) (1 diff)
-
t/75-perl-beginner.t (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Document/Perl/Beginner.pm
r8557 r8558 70 70 my $error_start_position = length($prematch); 71 71 72 my $line = $editor->LineFromPosition( $error_start_position);72 my $line = $editor->LineFromPosition($error_start_position); 73 73 ++$line; # Editor starts counting at 0 74 74 -
trunk/Padre/t/75-perl-beginner.t
r8556 r8558 8 8 9 9 sub LineFromPosition { 10 return 0;10 return 0; 11 11 } 12 12 … … 14 14 15 15 sub gettext { 16 return $_[0];16 return $_[0]; 17 17 } 18 18 … … 26 26 27 27 my %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', 32 32 'boolean_expressions_pipes.pl' => 'TODO', 33 33 'match_default_scalar.pl' => 'TODO', … … 37 37 'return_stronger_than_or.pl' => 'TODO', 38 38 '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 ... 40 40 'else_if.pl' => "Line 1: 'else if' is wrong syntax, correct if 'elsif'.", 41 41 … … 48 48 49 49 use Padre::Document::Perl::Beginner; 50 my $b = Padre::Document::Perl::Beginner->new( document => {editor => bless {},'local::t75'});50 my $b = Padre::Document::Perl::Beginner->new( document => { editor => bless {}, 'local::t75' } ); 51 51 52 52 isa_ok $b, 'Padre::Document::Perl::Beginner';
Note: See TracChangeset
for help on using the changeset viewer.
