-
-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: print value type for interface{} containers (#409)
When a value is contained in an interface{} we should show the type of the value as well as the interface{} type Consider the test: Expect([]interface{}{1}).To(Equal([]interface{}{uint(1)})) Previous message: Expected <[]interface {} | len:1, cap:1>: [1] to equal <[]interface {} | len:1, cap:1>: [1] New message: Expected <[]interface {} | len:1, cap:1>: [<int>1] to equal <[]interface {} | len:1, cap:1>: [<uint>1] By showing the type, it's much easier to work out what is going on
- Loading branch information
Showing
4 changed files
with
30 additions
and
8 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
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