Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn user when there's a subtle type diff in ShouldResemble #51

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

srabraham
Copy link
Contributor

Currently ShouldResemble fails confusingly when the visual diff of two items is the same despite DeepEquals being false.

See more context in comments in the PR, or at these issues #50 smartystreets/goconvey#665

Currently ShouldResemble fails confusingly when the visual diff of
two items is the same despite DeepEquals being false.

See more context in comments in the PR, or at these issues
smarty#50
smartystreets/goconvey#665
@srabraham srabraham changed the title Warn user when there's a subtle type difference ShouldResemble Warn user when there's a subtle type diff in ShouldResemble Apr 3, 2023
@mdwhatcott mdwhatcott merged commit 0ef31d9 into smarty:master Apr 3, 2023
@mdwhatcott
Copy link
Contributor

@srabraham - Thanks!

mdwhatcott added a commit that referenced this pull request Apr 3, 2023
> Render doesn't show the types of fields, so something like int(5) will appear
the same as int64(5), but they will cause DeepEquals to return false. This
message at least makes it clear why there appears to be no diff. A better solution
would be to have the diff look for where the two items actually differ, e.g. through
something like https://github.com/go-test/deep

See PR #51 and Issue #50
@mdwhatcott
Copy link
Contributor

I've pushed a new release (v1.13.1) which can be incorporated by the maintainers of GoConvey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants