Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 2 years agoCompareBooleanssh.itjust.worksexternal-linkmessage-square32linkfedilinkarrow-up1118arrow-down12
arrow-up1116arrow-down1external-linkCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 2 years agomessage-square32linkfedilink
minus-squaremarx2k@lemmy.worldlinkfedilinkEnglisharrow-up7·2 years agoClearly it should be return orig == val Duh
minus-squareoffspec@lemmy.worldlinkfedilinkEnglisharrow-up20·2 years agoTo match the current behavior it should be orig != val
minus-squaremarx2k@lemmy.worldlinkfedilinkEnglisharrow-up2·2 years agoYou’re hired. Can your start on Monday?
Clearly it should be
return orig == valDuh
To match the current behavior it should be orig != val
You’re hired. Can your start on Monday?