jroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoTests are code toolemmy.worldimagemessage-square35fedilinkarrow-up1102arrow-down12
arrow-up1100arrow-down1imageTests are code toolemmy.worldjroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square35fedilink
minus-squarejjjalljs@ttrpg.networklinkfedilinkarrow-up2·1 year agoNothing to test? Lol what. def add(a: int, b: int) -> int: return a * b All types are correct. No side effects. Does the wrong thing.
minus-squareMyNameIsRichard@lemmy.mllinkfedilinkarrow-up0arrow-down1·1 year agoMaybe it’s doing the right thing but is badly named
Nothing to test? Lol what.
def add(a: int, b: int) -> int: return a * b
All types are correct. No side effects. Does the wrong thing.
Maybe it’s doing the right thing but is badly named