summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/harness/deepEqual-array.js
blob: 774c3c019268c4918c700705e052cf09b7c7151f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2019 Ron Buckton. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
  array values compare correctly.
includes: [deepEqual.js]
---*/

assert.deepEqual([], []);
assert.deepEqual([1, "a", true], [1, "a", true]);

assert.throws(Test262Error, function () { assert.deepEqual([], [1]); });
assert.throws(Test262Error, function () { assert.deepEqual([1, "a", true], [1, "a", false]); });

reportCompare(0, 0);