The tests were assuming that newlines were `\n` characters but this is not the case on Windows. PR Close #38925
let