4 ms·
Does this distinction really matter? Everyone is so quick to mention this, but personally 1. I see unit tests as examples of how you can use the software and 2.
by ehsankia 6y ago
Does this distinction really matter? Everyone is so quick to mention this, but personally 1. I see unit tests as examples of how you can use the software and 2. It's still a link to copyrighted content is software that can be used to download said content. Doesn't matter if it's in documentation, unit test or even code comment.
- setr 6y agoIt does in the sense of intent -- if they built the tool for the express purpose of avoiding copyright restriction, they would do more than hide it in a random unit test or code comment. Putting it in the README itself would be a far stronger signal of intentional malfeasance. In the unit test... it's pretty clear the original developer's intent was simply to pick a video, and chose a trivially popular one (taylor swift), with likely no mind towards copyright (or its avoidance). That is, the tool happens to be capable of the job, because it simply has purpose to download videos, with no awareness of copyright law.
- ehsankia 6y agoUnit tests are explicit examples of how the program works. It's showing by example things the program can do. Hell, it's even testing them to make sure they still and always will work. You may as well name the unit test "testCanDownloadIllegalContent()"