r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

Show parent comments

22

u/dododindon Jul 20 '18

Which proves that this "testing" fad is not reliable enough for real business.

11

u/rangeDSP Jul 20 '18

If your testing can't catch errors like these it implies that at least one of the following is truel:

  1. The tests are badly written

  2. The code isn't easily testable

  3. if(2==true), then there are messy dependency issues in the code

1

u/squngy Jul 20 '18

if(2==true), then there are messy dependency issues in the code

javascript: I don't get it...

1

u/rangeDSP Jul 20 '18

Actually that would've been fine in JavaScript, didn't want to go into truthy or falsey debate, your linter would complain though 😛