ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 1 month agoUncle Bob becoming even worse:lemmy.worldimagemessage-square193fedilinkarrow-up1204arrow-down16
arrow-up1198arrow-down1imageUncle Bob becoming even worse:lemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 1 month agomessage-square193fedilink
minus-squareHazardousBanjo@lemmy.worldlinkfedilinkarrow-up21·1 month agoassert(true); assert(true); assert(true); assert(true); assert(true);
minus-squareRecallMadness@lemmy.nzlinkfedilinkarrow-up1·1 month agoMy favourite (that I saw a human do) was asserting on unconstrained mocks with a typo (so they always asserted true) Hundreds of tests. Not exactly pointless as they did call the code so maybe caught some issues. But we fixed the typo and barely half of them passed. No idea how the software worked, but it did.
assert(true);
assert(true);
assert(true);
assert(true);
assert(true);
Have I worked with you before?
assert(true);
Dammit… PR rejected
Lol
My favourite (that I saw a human do) was asserting on unconstrained mocks with a typo (so they always asserted true)
Hundreds of tests. Not exactly pointless as they did call the code so maybe caught some issues. But we fixed the typo and barely half of them passed.
No idea how the software worked, but it did.