Debian Codegraph @

js/src/tests/test262/harness/deepEqual-deep.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 values compare correctly.
7 includes: [deepEqual.js]
8 ---*/
9
10 assert.deepEqual({ a: { x: 1 }, b: [true] }, { a: { x: 1 }, b: [true] });
11
12 assert.throws(Test262Error, function () { assert.deepEqual({}, { a: { x: 1 }, b: [true] }); });
13 assert.throws(Test262Error, function () { assert.deepEqual({ a: { x: 1 }, b: [true] }, { a: { x: 1 }, b: [false] }); });
14
15 reportCompare(0, 0);