Destide to Programmer [email protected]English • 12 days agoInfallible Codefeddit.ukimagemessage-square165fedilinkarrow-up1470cross-posted to: [email protected]
arrow-up1470imageInfallible Codefeddit.ukDestide to Programmer [email protected]English • 12 days agomessage-square165fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink1•11 days agoI don’t want unseeded randomness in my tests, ever. Seed the tests, and making these pass would be trivial.
minus-square@[email protected]linkfedilink2•11 days 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!