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 false positive #236

Closed
zship opened this issue Feb 21, 2018 · 0 comments
Closed

Hoek.deepEqual false positive #236

zship opened this issue Feb 21, 2018 · 0 comments
Assignees
Labels
bug
Milestone

Comments

@zship
Copy link

@zship zship commented Feb 21, 2018

This appears to be similar to #164, but is not a regression as far as I can tell (I can't reproduce #164). Using Hoek 5.0.3:

const date1 = { year: 2018, month: 1, day: 1 };
const date2 = { year: 2000, month: 1, day: 1 };

const result = Hoek.deepEqual({ start: date1, end: date1 }, { start: date1, end: date2 });

Expected: result === false
Actual: result === true

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