logoalt Hacker News

tayo42yesterday at 8:32 PM2 repliesview on HN

Unit tests catch that kind of stuff


Replies

shagieyesterday at 11:11 PM

The code works perfectly - there is no issue that a unit test could catch... unless you are spying on internally created objects to a method and verifying that certain functions are called some number of times for given data.

show 1 reply
anthonypasq96yesterday at 8:54 PM

youre verifying std lib function call counts in unit tests? lmao.

show 2 replies