Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While implementing #3311 (and adding some unit tests for some new util functions I wrote), I noticed that the existing unit tests:
This ticket fixes the first item by making the test more valuable and testing the real case that it was meant to catch (for Windows filenames -- see #3862).
It addresses the second issue by adding unit testing to the CI tasks. Not sure if this is actually something we want seeing as we're only testing one module (for now).
I hope that this encourages more unit testing in the future (although I think the integration/other tests are probably solid enough already). In general I think unit tests are pretty cheap, but one thing they are good for (especially in a large OS project) is for documenting how code works, making it easier for folks new to the project to understand. 👍
Resolves #4261