Skip to content

expect(Infinity).toBeCloseTo(Infinity) fails #7405

Closed
@nampord

Description

@nampord

For consistency it would be good if .toBeCloseTo could handle Infinity gracefully :

any number should not be close to Infinity at any precision
Infinity should be close to Infinity at any precision

any number should not be close to -Infinity at any precision
-Infinity should be close to -Infinity at any precision

-Infinity should not be close to Infinity at any precision

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions