The code assumes Windows-style line separators (\r\n), but on UNIX-based OSes the tests fail because the line separator is assumed to be (\n) and the generated strings differ from the test sources. The code should use a constant set based on the operating system to allow the comparisons to work regardless of the host operating system.
The code assumes Windows-style line separators (\r\n), but on UNIX-based OSes the tests fail because the line separator is assumed to be (\n) and the generated strings differ from the test sources. The code should use a constant set based on the operating system to allow the comparisons to work regardless of the host operating system.