Skip to content

Misplaced "expected" and "actual" Arguments Inside InEpsilonSlice #1231

@vaguecoder

Description

@vaguecoder

Both InEpsilon and InEpsilonSlice has parameter expected before actual

func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool
func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool

However, InEpsilon's call inside InEpsilonSlice has the arguments misplaced:

result := InEpsilon(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), epsilon)

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