Skip to content

Add a tolerance argument to has_equal_value() #376

@richierocks

Description

@richierocks

Checking that two numbers are equal within a specified tolerance is currently a bit clunky and prone to error.

See this example of it being done wrong.

https://github.com/datacamp/courses-statistical-simulation-in-python/pull/106#pullrequestreview-234160761

Having a tolerance argument would save messing about writing custom equality functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions