Skip to content

InEpsilon does not fail when passed a NaN value #918

Closed
@hectorj

Description

@hectorj

Hi! We ran into a small isue today with require.InEpsilon, at version 1.5.1

func TestInEpsilonNaN(t *testing.T) {
	require.InEpsilon(t, 42, math.NaN(), 1)
}

Actual result : test passes

Expected result : an error

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