forked from stretchr/testify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
assert: better formatting for Len() error
Previously, the use of %s with array objects meant you would get an error like this: "[%!s(int=1) %!s(int=2) %!s(int=3)]\" should have 4 item(s), but has 3 Use %v instead, which provides a much nicer error. "[1 2 3]" should have 4 item(s), but has 3 Fixes stretchr#1482.
- Loading branch information
1 parent
882382d
commit 9a7e703
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters