|
|
|
|
|
by HideousKojima
911 days ago
|
|
I had to migrate some ancient VB.NET code to .NET 6+ and C#. The code outputs a text file, and I needed to nake sure the new output matched the old output. I could have written some sort of test program that would have been roughly equal in length to what I was rewriting to verify that any change I made didn't affect the output, and to verify that the internal data was the same at each stage. Or... I could just output the internal state st various points and the final output to files and compare them directly. I chose the latter, and it saved me far more work than writing tests. If I need to verify that my code works the same as it did yesterday, I can just compare the output of today's code to the output of yesterday's code. |
|