[deleted]•

In my Intro to Java course, we were required to write x amount of test cases for each assignment, and a ton of students did this exact type of thing. It was baffling.

12
auxiliary-character•

Don't have enough assertions?

assert 1==1 : "Identity Error: Is a critical part of your computer exposed to excessive radiation, perhaps?";
25
hello_hawkOPone-liner fangirl•

Unfortunately, we're forced to use code coverage tools, and if you don't test instantiation, you still have red in your project. :(

2
CN523•

It reminds me of some old code I had to work with (provided by another company) with the following comment in it: "//If it fails here I have no idea what happend." Guess who had to find out what caused the error :(

1