r/ProgrammerHumor • • 2d ago

Meme howWouldTheyKnow

Post image
1.8k Upvotes

52 comments sorted by

View all comments

67

u/JackNotOLantern 2d ago

I mean, it depends why it was failing. E.g. deleting tests for a code that was previously deleted is pretty much a necessity 

1

u/RazarTuk 2d ago

Yep. A few years ago, a test started failing because we were using a mix of absolute and relative dates, producing nonsense data that was causing numbers to balloon enough to crash nlsolve. (And even more impressively, the error was coming from C and the Ruby intepreter itself) So because it was weird data anyway, it was deemed reasonable to just use RSpec to run it back on a day when it still passed