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

Display more information for "BeEquivalentTo" #385

Closed
DblK opened this issue May 11, 2020 · 1 comment · Fixed by #409
Closed

Display more information for "BeEquivalentTo" #385

DblK opened this issue May 11, 2020 · 1 comment · Fixed by #409

Comments

@DblK
Copy link

DblK commented May 11, 2020

When I run a test with:

Expect(XXXX).Should(BeEquivalentTo(expected))

I had the following output with a test failed

Expected
          <map[string]interface {} | len:2>: {"super": "hero", "maxHP": 500000}
      to be equivalent to
          <map[string]interface {} | len:2>: {"super": "hero", "maxHP": 500000}

This is true, but I had a hard time figured out what was the real problem.
My property maxHP has been an int for expected and a float64 by variable XXXX.

I would be nice, if an additional message could be provided to point out the mismatch in type.

Anyway, I like your product!

@blgm
Copy link
Collaborator

blgm commented May 27, 2020

This is very similar to our oldest issue #161. But thanks for raising it again as it's still unresolved.

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

Successfully merging a pull request may close this issue.

2 participants