769
you are viewing a single comment's thread
view the rest of the comments
[-] KeepFlying@lemmy.world 2 points 1 year ago

With a comment on the test detailing why it matters so people don't just assume the test is out of date when it fails.

And ideally test the underlying result of x before y, not the fact that x is called before y.

And while we're at it, assert in Y that X has been called, and again comment the reason for the preconditions.

this post was submitted on 12 Dec 2023
769 points (99.0% liked)

Programmer Humor

19817 readers
796 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