• deadbeef79000@lemmy.nz
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    3 months ago

    This is why it’s important to have tests that assert a system’s failure modes too.

    shouldFitTriangleInTriangleHole()

    shouldNotFitTriangleInAnyOtherHoles()

    Bonus points for just parameterizing it.