Skip to content
Snippets Groups Projects
Unverified Commit 14931c92 authored by Rick Waldron's avatar Rick Waldron Committed by GitHub
Browse files

Merge pull request #1516 from cxielarko/tostring-default-radix

test BigInt toString with default radix
parents 119c8ead 6d4b9a55
No related branches found
No related tags found
No related merge requests found
// Copyright 2018 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-bigint.prototype.tostring
description: toString with default radix
features: [BigInt]
---*/
assert.sameValue((-100n).toString(), "-100", "(-100n).toString() === '-100'");
assert.sameValue((0n).toString(), "0", "(0n).toString() === '0'");
assert.sameValue((100n).toString(), "100", "(100n).toString() === '100'");
assert.sameValue((-100n).toString(undefined), "-100",
"(-100n).toString(undefined) === '-100'");
assert.sameValue((0n).toString(undefined), "0",
"(0n).toString(undefined) === '0'");
assert.sameValue((100n).toString(undefined), "100",
"(100n).toString(undefined) === '100'");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment