ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 4 days agoUncle Bob becoming even worse:lemmy.worldimagemessage-square231linkfedilinkarrow-up1541arrow-down112
arrow-up1529arrow-down1imageUncle Bob becoming even worse:lemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 4 days agomessage-square231linkfedilink
minus-squareHazardousBanjo@lemmy.worldlinkfedilinkarrow-up53arrow-down1·4 days agoassert(true); assert(true); assert(true); assert(true); assert(true);
minus-squarePattyMcB@lemmy.worldlinkfedilinkarrow-up31arrow-down1·4 days agoHave I worked with you before?
minus-squaremarlowe221@lemmy.worldlinkfedilinkEnglisharrow-up3·3 days agoLook at all the pretty green check marks!
minus-squareRecallMadness@lemmy.nzlinkfedilinkarrow-up2·3 days 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
Look at all the pretty green check marks!
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.