3 ms·
If you are writing the standard library for a programing language than unit tests are useful. If you are implementing an algorithm for any other reason you shou
by bluGill 3y ago
If you are writing the standard library for a programing language than unit tests are useful. If you are implementing an algorithm for any other reason you should ask why isn't this in a standard library already. Sometimes your company will have good reasons for making their own standard library, sometimes you will bring in a third party algorithm library. Most coding though isn't making an algorithm it is using existing known algorithms to massage data. As such most code shouldn't be unit tested.
If you are making a standard library then you should be writing a lot of unit tests. However odds are that isn't your job.