Commit 8c0dda34 authored by zach%zachlipton.com's avatar zach%zachlipton.com

Actually make the strict checking work.

parent 93ec6654
......@@ -57,12 +57,18 @@ foreach $file (@testitems) {
next;
}
}
if ($filecontent !~ /use strict;/) {
}
foreach $file (@testitems) {
$file =~ s/\s.*$//; # nuke everything after the first space (#comment)
next if (!$file); # skip null entries
$filecontent = `cat $file`;
if ($filecontent !~ /use strict/) {
ok(0,"$file DOES NOT use strict");
} else {
ok(1,"$files uses strict");
ok(1,"$file uses strict");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment