• FishFace@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    23 days ago

    I don’t want unseeded randomness in my tests, ever.

    Seed the tests, and making these pass would be trivial.

      • FishFace@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        23 days ago

        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!