summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/harness/deepEqual-object.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/harness/deepEqual-object.js')
-rw-r--r--js/src/tests/test262/harness/deepEqual-object.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/tests/test262/harness/deepEqual-object.js b/js/src/tests/test262/harness/deepEqual-object.js
new file mode 100644
index 0000000000..53ea86fd3d
--- /dev/null
+++ b/js/src/tests/test262/harness/deepEqual-object.js
@@ -0,0 +1,17 @@
+// Copyright 2019 Ron Buckton. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+description: >
+ object values compare correctly.
+includes: [deepEqual.js]
+---*/
+
+
+assert.deepEqual({}, {});
+assert.deepEqual({ a: 1, b: true }, { a: 1, b: true });
+
+assert.throws(Test262Error, function () { assert.deepEqual({}, { a: 1, b: true }); });
+assert.throws(Test262Error, function () { assert.deepEqual({ a: 1, b: true }, { a: 1, b: false }); });
+
+reportCompare(0, 0);