mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
Merge pull request #96 from ac7/quote_errors
Wrap NoError message with quote marks
This commit is contained in:
commit
a74f1fecd2
@ -801,7 +801,7 @@ func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
return Fail(t, fmt.Sprintf("No error is expected but got %v", err), msgAndArgs...)
|
return Fail(t, fmt.Sprintf("Received unexpected error %q", err), msgAndArgs...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Error asserts that a function returned an error (i.e. not `nil`).
|
// Error asserts that a function returned an error (i.e. not `nil`).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user