From cdfa5b13109026ceb9dc0ad6e01246d550842fe1 Mon Sep 17 00:00:00 2001 From: 0x4261756D <–38735823+0x4261756D@users.noreply.github.com> Date: Sat, 31 Dec 2022 16:12:53 +0100 Subject: [PATCH] Fix tests failing on Windows due to EOL shenanigans --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4ac1308..421fc7d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -121,7 +121,7 @@ fn main() for f in fs::read_dir(&args[2]).unwrap() { let f = f.unwrap(); - let file_content = fs::read_to_string(f.path()).unwrap(); + let file_content = fs::read_to_string(f.path()).unwrap().replace("\r\n", "\n"); println!("========NOW TESTING {:?}========", f.path()); match compile(&file_content, &intrinsics, interpret, debug) {