• average650@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Why not just test all even numbers greater than 2? It covers infinite numbers and passes 100% of the time.

      • two_wheel2@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        We’ll grab those in integration and E2E tests… let’s just stick with even numbers such that 2 < n < 1002… that’s 1000 cases, more than enough, and 100% test coverage