projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Leeren String in undef für anständige DB-Abfrage umwandeln
[kivitendo-erp.git]
/
t
/
002goodperl.t
diff --git
a/t/002goodperl.t
b/t/002goodperl.t
index
f081ac7
..
28b69a4
100644
(file)
--- a/
t/002goodperl.t
+++ b/
t/002goodperl.t
@@
-119,7
+119,8
@@
foreach my $file (@testitems) {
next;
}
while (my $file_line = <FILE>) {
next;
}
while (my $file_line = <FILE>) {
- if ($file_line =~ m/(<\/?$tags>)/) {
+ last if $file_line =~ /^__END__/;
+ if ($file_line =~ m/(<\/?$tags>)/o) {
$found_html_count++;
$found_html .= $1;
}
$found_html_count++;
$found_html .= $1;
}
@@
-127,10
+128,12
@@
foreach my $file (@testitems) {
close (FILE);
if (!$found_html_count) {
ok(1,"$file does not contain HTML");
close (FILE);
if (!$found_html_count) {
ok(1,"$file does not contain HTML");
- } els
e
{
-
TODO: { local $TODO = q(Templating is not final
.);
+ } els
if ($found_html_count < 50)
{
+
TODO: { local $TODO = q(Even little amounts of HTML should go away...
.);
ok(0,"$file contains at least $found_html_count html tags.");
}
ok(0,"$file contains at least $found_html_count html tags.");
}
+ } else {
+ ok(0,"$file contains at least $found_html_count html tags.");
}
}
}
}