Changeset 8556


Ignore:
Timestamp:
10/03/09 03:57:33 (2 years ago)
Author:
Sewi
Message:

Fixed most of the test errors

File:
1 edited

Legend:

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

    r8506 r8556  
    33use strict; 
    44use warnings; 
     5 
     6# Create test environment... 
     7package local::t75; 
     8 
     9sub LineFromPosition { 
     10 return 0; 
     11} 
     12 
     13package Wx; 
     14 
     15sub gettext { 
     16 return $_[0]; 
     17} 
     18 
     19# The real test... 
     20package main; 
     21 
    522use Test::More; 
    623use Test::NoWarnings; 
     
    926 
    1027my %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.", 
    1431    'boolean_expressions_or.pl'    => 'TODO', 
    1532    'boolean_expressions_pipes.pl' => 'TODO', 
     
    2138    'grep_always_true.pl'          => 'TODO', 
    2239    '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'.", 
    2441 
    2542    # @ARGV, $ARGV, @INC, %INC, %ENV, %SIG, @ISA, 
     
    3148 
    3249use Padre::Document::Perl::Beginner; 
    33 my $b = Padre::Document::Perl::Beginner->new; 
     50my $b = Padre::Document::Perl::Beginner->new(document => {editor => bless {},'local::t75'}); 
    3451 
    3552isa_ok $b, 'Padre::Document::Perl::Beginner'; 
Note: See TracChangeset for help on using the changeset viewer.