Commit 77767d9d authored by Lysander Trischler's avatar Lysander Trischler
Browse files

Enforce error being a ParseError

parent 96e048bb
Pipeline #352 failed with stages
in 0 seconds
......@@ -105,6 +105,7 @@ func TestParseLine(t *testing.T) {
if testCase.expectedError != nil {
assert.ErrorIs(t, err, testCase.expectedError)
assert.EqualError(t, err, testCase.expectedErrorMsg)
assert.IsType(t, ParseError{}, err)
assert.Equal(t, Entry{}, entry)
} else {
assert.NoError(t, err)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment