Fix tests failing on Windows due to EOL shenanigans

This commit is contained in:
0x4261756D 2022-12-31 16:12:53 +01:00
parent 41667ff4a3
commit cdfa5b1310
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{