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

Hoek.deepEqual({a: 'foo'}, {a: 'foo', b: 'bar'}) return true #130

Closed
LucM opened this issue Feb 26, 2015 · 2 comments
Closed

Hoek.deepEqual({a: 'foo'}, {a: 'foo', b: 'bar'}) return true #130

LucM opened this issue Feb 26, 2015 · 2 comments
Assignees
Labels
bug
Milestone

Comments

@LucM
Copy link

@LucM LucM commented Feb 26, 2015

Hi,

I have a problem with deepEqual(a,b).
It does not return if a is strictly equal to b. But if b is included in a.

Hoek.deepEqual({a: 'foo', b: 'bar'}, {a: 'foo'}) // return false (a is not included in b)
Hoek.deepEqual({a: 'foo'}, {a: 'foo', b: 'bar'}) // return true (a is included in b, but a != b)

I guess, the comparison is based on the keys of the first object?

Thanks,

@cjihrig

This comment has been minimized.

Copy link
Contributor

@cjihrig cjihrig commented Feb 26, 2015

This looks like a duplicate of #127. It should be fixed in the next release.

@LucM

This comment has been minimized.

Copy link
Author

@LucM LucM commented Feb 26, 2015

Ok perfect. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.