]> Lady’s Gitweb - Pisces/blobdiff - value.test.js
Minor refactors & adjustments to values.js
[Pisces] / value.test.js
index ce6464d07091e19fd89b84b578d7a0ede3cb258f..b7dcd6980e89c4c12bac9b6fd861562c4707598c 100644 (file)
@@ -1,11 +1,14 @@
-// β™“πŸŒŸ PiscΔ“s βˆ· value.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 <https://mozilla.org/MPL/2.0/>.
+// SPDX-FileCopyrightText: 2022, 2023, 2025 Lady <https://www.ladys.computer/about/#lady>
+// SPDX-License-Identifier: MPL-2.0
+/**
+ * βŒ β™“πŸŒŸ PiscΔ“s βˆ· value.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 <https://mozilla.org/MPL/2.0/>.
+ */
 
 import {
   assertEquals,
@@ -24,10 +27,10 @@ import {
   isFullyPopulatedDescriptor,
   isGenericDescriptor,
   ITERATOR,
-  LN10,
-  LN2,
-  LOG10ℇ,
-  LOG2ℇ,
+  LN_10,
+  LN_2,
+  LOG10_𝑒,
+  LOG2_𝑒,
   MATCH,
   MATCH_ALL,
   MAXIMUM_NUMBER,
@@ -41,13 +44,13 @@ import {
   ordinaryToPrimitive,
   POSITIVE_INFINITY,
   POSITIVE_ZERO,
-  RECIPROCAL_SQRT2,
+  RECIPROCAL_SQRT_2,
   REPLACE,
   sameValue,
   sameValueZero,
   SPECIES,
   SPLIT,
-  SQRT2,
+  SQRT_2,
   TO_PRIMITIVE,
   TO_STRING_TAG,
   toFunctionName,
@@ -58,9 +61,9 @@ import {
   type,
   UNDEFINED,
   UNSCOPABLES,
-  Ξ•,
-  Ξ ,
-  β„‡,
+  π‘’,
+  πœ€,
+  πœ‹,
 } from "./value.js";
 
 describe("ASYNC_ITERATOR", () => {
@@ -90,27 +93,27 @@ describe("ITERATOR", () => {
   });
 });
 
-describe("LN10", () => {
+describe("LN_10", () => {
   it("[[Get]] is ln(10)", () => {
-    assertStrictEquals(LN10, Math.LN10);
+    assertStrictEquals(LN_10, Math.LN10);
   });
 });
 
-describe("LN2", () => {
+describe("LN_2", () => {
   it("[[Get]] is ln(2)", () => {
-    assertStrictEquals(LN2, Math.LN2);
+    assertStrictEquals(LN_2, Math.LN2);
   });
 });
 
-describe("LOG10ℇ", () => {
-  it("[[Get]] is log10(ℇ)", () => {
-    assertStrictEquals(LOG10ℇ, Math.LOG10E);
+describe("LOG10_𝑒", () => {
+  it("[[Get]] is log10(𝑒)", () => {
+    assertStrictEquals(LOG10_𝑒, Math.LOG10E);
   });
 });
 
-describe("LOG2ℇ", () => {
+describe("LOG2_𝑒", () => {
   it("[[Get]] is log2(ℇ)", () => {
-    assertStrictEquals(LOG2ℇ, Math.LOG2E);
+    assertStrictEquals(LOG2_𝑒, Math.LOG2E);
   });
 });
 
@@ -192,9 +195,9 @@ describe("POSITIVE_ZERO", () => {
   });
 });
 
-describe("RECIPROCAL_SQRT2", () => {
+describe("RECIPROCAL_SQRT_2", () => {
   it("[[Get]] is sqrt(Β½)", () => {
-    assertStrictEquals(RECIPROCAL_SQRT2, Math.SQRT1_2);
+    assertStrictEquals(RECIPROCAL_SQRT_2, Math.SQRT1_2);
   });
 });
 
@@ -216,9 +219,9 @@ describe("SPLIT", () => {
   });
 });
 
-describe("SQRT2", () => {
+describe("SQRT_2", () => {
   it("[[Get]] is sqrt(2)", () => {
-    assertStrictEquals(SQRT2, Math.SQRT2);
+    assertStrictEquals(SQRT_2, Math.SQRT2);
   });
 });
 
@@ -1071,20 +1074,20 @@ describe("type", () => {
   });
 });
 
-describe("Ξ•", () => {
-  it("[[Get]] is Ξ΅", () => {
-    assertStrictEquals(Ξ•, Number.EPSILON);
+describe("𝑒", () => {
+  it("[[Get]] is π‘’", () => {
+    assertStrictEquals(𝑒, Math.E);
   });
 });
 
-describe("Ξ ", () => {
-  it("[[Get]] is Ο€", () => {
-    assertStrictEquals(Ξ , Math.PI);
+describe("πœ€", () => {
+  it("[[Get]] is πœ€", () => {
+    assertStrictEquals(πœ€, Number.EPSILON);
   });
 });
 
-describe("ℇ", () => {
-  it("[[Get]] is β„‡", () => {
-    assertStrictEquals(ℇ, Math.E);
+describe("πœ‹", () => {
+  it("[[Get]] is πœ‹", () => {
+    assertStrictEquals(πœ‹, Math.PI);
   });
 });
This page took 0.264525 seconds and 4 git commands to generate.