Ask HN: How do people really test their code?
https://news.ycombinator.com/item?id=1645286If that question is too general, which it is, then consider the case of building a data structure and its accompanying algorithms. Now, how, IRL, is code verified both for correctness and for desired performance.
Right now, I rely on running a bunch of functions that I write, but I was wondering if there's anything out there that's better (or sort of a methodology that dictates which tests one ought to write).
(if the question is still too general, lets consider the case for Java, and maybe C).