Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 2 years agoCompareBooleanssh.itjust.worksimagemessage-square96linkfedilinkarrow-up1517arrow-down19
arrow-up1508arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 2 years agomessage-square96linkfedilink
minus-squaremarx2k@lemmy.worldlinkfedilinkEnglisharrow-up14·2 years agoClearly it should be return orig == val Duh
minus-squareoffspec@lemmy.worldlinkfedilinkEnglisharrow-up34·2 years agoTo match the current behavior it should be orig != val
minus-squaremarx2k@lemmy.worldlinkfedilinkEnglisharrow-up4·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?