Closed masak closed 3 years ago
Hah, after those changes, t/00-consistent-fastfuncs.t
fails on Windows.
This diff seems to fix it, though:
diff --git a/lib/Language/Bel/Test.pm b/lib/Language/Bel/Test.pm
index 091fd59..31985f9 100644
--- a/lib/Language/Bel/Test.pm
+++ b/lib/Language/Bel/Test.pm
@@ -138,6 +138,7 @@ sub slurp_file {
for_each_line_in_file($filename, sub {
my ($line) = @_;
push @lines, $line;
+ push @lines, "\n";
});
return join("", @lines);
Reopening.
Reason: CRLF newlines. The following patch fixes it:
But we're now well into "this keeps happening" territory, and so I'd also like to look into a solution that abstracts away the handling of Windows line-break characters into the testing library, before closing this issue.