Make the port's source-scanning test line-ending neutral

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-06 02:15:31 +02:00
commit 3514d76667

View file

@ -1817,7 +1817,9 @@ mod tests {
"world/controllers.rs",
"runtime.rs",
] {
let text = std::fs::read_to_string(root.join(file)).expect("the source reads");
let text = std::fs::read_to_string(root.join(file))
.expect("the source reads")
.replace("\r\n", "\n");
// Only the production half; a test may name what production must
// not.
let production = text