Changeset 8556
- Timestamp:
- 10/03/09 03:57:33 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/t/75-perl-beginner.t (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/t/75-perl-beginner.t
r8506 r8556 3 3 use strict; 4 4 use warnings; 5 6 # Create test environment... 7 package local::t75; 8 9 sub LineFromPosition { 10 return 0; 11 } 12 13 package Wx; 14 15 sub gettext { 16 return $_[0]; 17 } 18 19 # The real test... 20 package main; 21 5 22 use Test::More; 6 23 use Test::NoWarnings; … … 9 26 10 27 my %TEST = ( 11 'split1.pl' => " The second parameter of split is a string, not an array",12 'split2.pl' => " The second parameter of split is a string, not an array",13 'warning.pl' => " You need to write use warnings (with an s at the end) and not use warning.",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.", 14 31 'boolean_expressions_or.pl' => 'TODO', 15 32 'boolean_expressions_pipes.pl' => 'TODO', … … 21 38 'grep_always_true.pl' => 'TODO', 22 39 'my_argv.pl' => 'TODO', # "my" variable @ARGV masks global variable at ... 23 'else_if.pl' => " 'else if' is wrong syntax, correct if 'elsif'.",40 'else_if.pl' => "Line 1: 'else if' is wrong syntax, correct if 'elsif'.", 24 41 25 42 # @ARGV, $ARGV, @INC, %INC, %ENV, %SIG, @ISA, … … 31 48 32 49 use Padre::Document::Perl::Beginner; 33 my $b = Padre::Document::Perl::Beginner->new ;50 my $b = Padre::Document::Perl::Beginner->new(document => {editor => bless {},'local::t75'}); 34 51 35 52 isa_ok $b, 'Padre::Document::Perl::Beginner';
Note: See TracChangeset
for help on using the changeset viewer.
