Debian Codegraph @

js/src/tests/test262/harness/deepEqual-object.js

raw
1 // Copyright 2019 Ron Buckton. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 description: >
6 object values compare correctly.
7 includes: [deepEqual.js]
8 ---*/
9
10
11 assert.deepEqual({}, {});
12 assert.deepEqual({ a: 1, b: true }, { a: 1, b: true });
13
14 assert.throws(Test262Error, function () { assert.deepEqual({}, { a: 1, b: true }); });
15 assert.throws(Test262Error, function () { assert.deepEqual({ a: 1, b: true }, { a: 1, b: false }); });
16
17 reportCompare(0, 0);