Add line-numbers to asserts
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
334bf3ea76
commit
b80e0309d2
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ func TestShellParser4EnvVars(t *testing.T) {
|
|||
if expected == "error" {
|
||||
assert.Check(t, is.ErrorContains(err, ""), "input: %q, result: %q", source, newWord)
|
||||
} else {
|
||||
assert.Check(t, err)
|
||||
assert.Check(t, is.Equal(newWord, expected))
|
||||
assert.Check(t, err, "at line %d of %s", lineCount, fn)
|
||||
assert.Check(t, is.Equal(newWord, expected), "at line %d of %s", lineCount, fn)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue