20
C0D4
4y

Has anyone felt the astonishing effect that is writing a whole bunch of test classes, hitting run for the first time and they all pass.

I'm kinda sitting here staring at my screen in disbelief, either these tests all passed, or I've really missed something and they passed anyway, or it's just a lying piece of shit trying to question my own abilities... all are possible right now.

And no, they are not " assert(1,1) "

Comments
  • 2
    Been very close.
  • 0
    I have only started using unit tests a month ago, but I once wrote 2000 lines that is still in production with minor UI improvements.
  • 2
    My rule for writing tests is to make them fail first.
  • 0
    They just didn't run properly. Make a bug in your code and see as it still passes.
Add Comment