Skip to content

Baffling Birthdays example and tests have errors #410

Description

@rzuckerm

This should be this:

            $tolerance = 5
            function Test-Probability($Probability, $Expected, $Tolerance) {
                [Math]::Abs($Expected - $Tolerance) -le $Tolerance
            }

I changed 1% to 5% since that's what I could get working locally. I'm not sure if that is sufficiently high or not.

This should be this:

    $count * $runs /  100.00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions