mirror of https://github.com/tc39/test262.git
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
// Copyright (C) 2017 Josh Wolfe. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
description: Strict equality comparison of BigInt and Boolean values
|
|
esid: sec-strict-equality-comparison
|
|
info: |
|
|
1. If Type(x) is different from Type(y), return false.
|
|
|
|
features: [BigInt]
|
|
---*/
|
|
|
|
assert.sameValue(-1n === false, false, "-1n === false");
|
|
assert.sameValue(false === -1n, false, "false === -1n");
|
|
assert.sameValue(-1n === true, false, "-1n === true");
|
|
assert.sameValue(true === -1n, false, "true === -1n");
|
|
assert.sameValue(0n === false, false, "0n === false");
|
|
assert.sameValue(false === 0n, false, "false === 0n");
|
|
assert.sameValue(0n === true, false, "0n === true");
|
|
assert.sameValue(true === 0n, false, "true === 0n");
|
|
assert.sameValue(1n === false, false, "1n === false");
|
|
assert.sameValue(false === 1n, false, "false === 1n");
|
|
assert.sameValue(1n === true, false, "1n === true");
|
|
assert.sameValue(true === 1n, false, "true === 1n");
|
|
assert.sameValue(2n === false, false, "2n === false");
|
|
assert.sameValue(false === 2n, false, "false === 2n");
|
|
assert.sameValue(2n === true, false, "2n === true");
|
|
assert.sameValue(true === 2n, false, "true === 2n");
|