1070
submitted 2 months ago* (last edited 2 months ago) by treverd@lemmy.world to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] moseschrute@lemmy.world 4 points 2 months ago
[-] MajorHavoc@programming.dev 7 points 2 months ago* (last edited 2 months ago)

If the tests pass, then everything is fine... Unless we expected the tests not to pass...then it's time to burn the codebase down and try again after a long vacation to clear our heads.

Of course, I'll usually settle for fixing the test suite after a long weekend. But in my heart, I'll know what I should have done...

[-] moseschrute@lemmy.world 7 points 2 months ago

...or you can just delete the failing tests :)

[-] Lemminary@lemmy.world 7 points 2 months ago
[-] moseschrute@lemmy.world 4 points 2 months ago

Delete all the tests!

[-] hesusingthespiritbomb@lemmy.world 3 points 2 months ago

If the tests don't give any insight into the functionality it is testing, they are probably not the best tests.

[-] smeg@feddit.uk 1 points 2 months ago

My tests always pass! They've never failed, that's how good a programmer I am!

[-] moseschrute@lemmy.world 1 points 2 months ago

You deleted the failing test, didn’t you

[-] smeg@feddit.uk 1 points 2 months ago

Test can never fail if it never makes any real assertions!

this post was submitted on 30 Jan 2025
1070 points (97.7% liked)

Programmer Humor

22262 readers
452 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS