The file produced by os.WriteFile() on Windows is not CRLF, but the golden file is very likely CRLF because Windows. Until the reader manually sets the golden file to LF, tests will fail. The book should mention this, especially if it’s labelled a “beginner” book. A true beginner might not know to look for that.
1 Like
Hi @Chris-AF . Thanks for the feedback. That’s a good point. When I tested it on Windows, I already had the golden files which I transferred to the Windows machine, therefore, I did not have this issue. I will check with the team to see if we can add a note in the errata.
Thanks again for the comment.
Ricardo
1 Like