Add line-numbers to asserts
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: b80e0309d220268a2b9e6aec5bb05d7af330e591 Component: engine
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user