mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:07:46 +00:00
LibJS: Use more accurate number-to-string method in Number toPrecision
This commit is contained in:
parent
d56205f991
commit
5898db8c0f
2 changed files with 4 additions and 5 deletions
|
@ -87,6 +87,9 @@ describe("correct behavior", () => {
|
|||
[1, 4, "1.000"],
|
||||
[123, 4, "123.0"],
|
||||
[123.45, 4, "123.5"],
|
||||
|
||||
// Disabled for now due to: https://github.com/SerenityOS/serenity/issues/15924
|
||||
// [3, 100, "3." + "0".repeat(99)],
|
||||
].forEach(test => {
|
||||
expect(test[0].toPrecision(test[1])).toBe(test[2]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue