-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MSHARED-952] make PrettyPrintXmlWriter platform independent #62
Conversation
Isn't the test portable already when the proper line separator is used throughout? |
It passes on all platforms ATM but it's not testing the same thing on all platforms. E.g. if we had a bug in handling \r\n then the bug wouldn't be seen when running on Linux or the Mac. Or if we had a bug handing \n it wouldn't be found on Windows. |
But the purpose of the test is to test the tags and not the line separators? You have removed |
The general contract of a unit test is running a function with known, fixed input and comparing it to known fixed output. |
Agreed. |
Fixing this has revealed some more platform dependent code in our output code which interferes with reproducible builds. |
No description provided.