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 providing false positive result #164

csrl opened this issue Oct 23, 2015 · 0 comments

Hoek.deepEqual providing false positive result #164

csrl opened this issue Oct 23, 2015 · 0 comments


Copy link

@csrl csrl commented Oct 23, 2015

Using Hoek v2.16.3

var Hoek = require("hoek");

// var item1 = [1]; // using this also incorrectly reports deep equality
var item1 = {key: "value1"};
var item2 = {key: "value2"};

var test = Hoek.deepEqual(
  [item1, item1],
  [item1, item2]

console.log("Hoek.deepEqual test - result should be false, and is actually", test);

The test result is 'true', which does not match my expectation.

$ npm version
{ npm: '3.3.8',
  http_parser: '2.3',
  modules: '14',
  node: '0.12.7',
  openssl: '1.0.2d',
  uv: '1.6.1',
  v8: '',
  zlib: '1.2.8' }
@nlf nlf added the bug label Nov 14, 2015
@nlf nlf closed this in 93d2cc8 Nov 14, 2015
@nlf nlf added this to the 3.0.3 milestone Nov 14, 2015
@nlf nlf self-assigned this Nov 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.