6

Colleague wrote all his test cases after finishing his code and set expectedOutput to garbage. His tests failed, printing actualOutput. Then he just replaced the garbage expectedOutput with actualOutput. Bingo bango, all tests passed.

"How do you like me now TDD?"

Comments
  • 6
    Possibly not the best way but still, now he has tests that will trap any regressions and thats where unit tests shine :)

    Have saved me many times.
Add Comment