Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 1 year agoCompareBooleanssh.itjust.worksimagemessage-square96fedilinkarrow-up1516arrow-down19
arrow-up1507arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 1 year agomessage-square96fedilink
minus-squaremarx2k@lemmy.worldlinkfedilinkEnglisharrow-up14·1 year agoClearly it should be return orig == val Duh
minus-squareoffspec@lemmy.worldlinkfedilinkEnglisharrow-up34·1 year agoTo match the current behavior it should be orig != val
minus-squaremarx2k@lemmy.worldlinkfedilinkEnglisharrow-up4·1 year agoYou’re hired. Can your start on Monday?
Clearly it should be
return orig == val
Duh
To match the current behavior it should be orig != val
You’re hired. Can your start on Monday?