Fix incorrect error message when the number of errors is unexpected

This commit is contained in:
Jeroen Engels 2020-06-06 19:12:08 +02:00
parent be43b18a2f
commit 1a14c26d65

View File

@ -1083,7 +1083,7 @@ checkAllErrorsMatch runResult unorderedExpectedErrors =
, expectedErrorsWithNoMatch = []
}
in
checkErrorsMatch runResult expectedErrors (List.length reviewErrors) reviewErrors
checkErrorsMatch runResult expectedErrors (List.length expectedErrors) reviewErrors
|> List.reverse
|> (\expectations -> Expect.all expectations ())