X-Git-Url: https://git.ladys.computer/Pisces/blobdiff_plain/e1cb83c479df2a3e4a5e918867a135ff9dde8121..2e6fac40384b2e17dd3a6b8700abc787b0b57479:/numeric.test.js
diff --git a/numeric.test.js b/numeric.test.js
index 0129ae3..b6dbf0d 100644
--- a/numeric.test.js
+++ b/numeric.test.js
@@ -1,11 +1,14 @@
-// ♓🌟 Piscēs ∷ numeric.test.js
-// ====================================================================
-//
-// Copyright © 2022–2023 Lady [@ Lady’s Computer].
-//
-// This Source Code Form is subject to the terms of the Mozilla Public
-// License, v. 2.0. If a copy of the MPL was not distributed with this
-// file, You can obtain one at .
+// SPDX-FileCopyrightText: 2022, 2023, 2025 Lady
+// SPDX-License-Identifier: MPL-2.0
+/**
+ * ⁌ ♓🧩 Piscēs ∷ numeric.test.js
+ *
+ * Copyright © 2022–2023, 2025 Lady [@ Ladys Computer].
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at .
+ */
import {
assert,
@@ -1351,6 +1354,22 @@ describe("toNumber", () => {
it("[[Call]] converts to a number", () => {
assertStrictEquals(toNumber(2n), 2);
});
+
+ it("[[Construct]] throws an error", () => {
+ assertThrows(() => new toNumber(1));
+ });
+
+ describe(".length", () => {
+ it("[[Get]] returns the correct length", () => {
+ assertStrictEquals(toNumber.length, 1);
+ });
+ });
+
+ describe(".name", () => {
+ it("[[Get]] returns the correct name", () => {
+ assertStrictEquals(toNumber.name, "toNumber");
+ });
+ });
});
describe("toNumeric", () => {