Skip to content

Commit 6895169

Browse files
committed
assert.InEpsilonSlice: fix order of expected vs actual (#1231)
1 parent 2357fa9 commit 6895169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assert/assertions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,7 @@ func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, m
14741474
}
14751475

14761476
for i := 0; i < expectedLen; i++ {
1477-
result := InEpsilon(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), epsilon)
1477+
result := InEpsilon(t, expectedSlice.Index(i).Interface(), actualSlice.Index(i).Interface(), epsilon)
14781478
if !result {
14791479
return result
14801480
}

0 commit comments

Comments
 (0)