[fine] Fix line endings in windows

This commit is contained in:
John Doty 2024-01-06 16:43:18 -08:00
parent 3d4538c0df
commit e5ac1b2718

View file

@ -4,7 +4,9 @@ use std::fs;
use std::path::{Path, PathBuf};
fn generate_test_for_file(path: PathBuf) -> String {
let contents = fs::read_to_string(&path).expect("Unable to read input");
let contents = fs::read_to_string(&path)
.expect("Unable to read input")
.replace("\r\n", "\n");
let display_path = path.display().to_string();
// Start iterating over lines and processing directives....