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