Destide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 1 month agoInfallible Codelemmy.mlexternal-linkmessage-square144fedilinkarrow-up1466arrow-down127
arrow-up1439arrow-down1external-linkInfallible Codelemmy.mlDestide@feddit.uk to Programmer Humor@lemmy.mlEnglish · 1 month agomessage-square144fedilink
minus-squareFishFace@lemmy.worldlinkfedilinkarrow-up2·1 month agoI don’t want unseeded randomness in my tests, ever. Seed the tests, and making these pass would be trivial.
minus-squareFrederikNJS@lemmy.ziplinkfedilinkarrow-up2·1 month agoThe right tool for the right job ¯\(ツ)/¯
minus-squareFishFace@lemmy.worldlinkfedilinkarrow-up2·1 month agoThe right tool here is tests at a level higher than machine code instructions that have been in CPUs since the 70s. Maybe TDD practice is not to test at this level, but every example of TDD sure tends to be something similar!
I don’t want unseeded randomness in my tests, ever.
Seed the tests, and making these pass would be trivial.
The right tool for the right job ¯\(ツ)/¯
The right tool here is tests at a level higher than machine code instructions that have been in CPUs since the 70s. Maybe TDD practice is not to test at this level, but every example of TDD sure tends to be something similar!