Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e9325e12

Von Sven Schöling vor mehr als 15 Jahren hinzugefügt

  • ID e9325e12309437f4a67a523f8f84459c60a46ae6
  • Vorgänger 06eb04eb
  • Nachfolger 092f3750

strict auf mandatory gestetzt, warnings auf TODO

Unterschiede anzeigen:

t/002goodperl.t
if ($file_line1 =~ m#\s-$flags#) {
ok(1,"$file uses standard perl location and -$flags");
} else {
TODO: {
local $TODO = q(warning isn't supported globally);
ok(0,"$file is MISSING -$flags --WARNING");
}
}
} else {
ok(0,"$file uses non-standard perl location");
......
}
}
TODO: {
local $TODO = 'strict is not implemented thoroughly yet';
foreach my $file (@testitems) {
my $found_use_strict = 0;
$file =~ s/\s.*$//; # nuke everything after the first space (#comment)
......
ok(0,"$file DOES NOT use strict --WARNING");
}
}
}
exit 0;

Auch abrufbar als: Unified diff