From 4a68bf5268f320607878f9018a0d2dbe3253dbc0 Mon Sep 17 00:00:00 2001 From: wesinator <5124946+wesinator@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:47:40 -0400 Subject: [PATCH] Get All Casings -> Get All Cases make this recipe easier to search and consistent with case ops --- src/core/config/Categories.json | 2 +- .../operations/{GetAllCasings.mjs => GetAllCases.mjs} | 8 ++++---- tests/operations/index.mjs | 2 +- .../tests/{GetAllCasings.mjs => GetAllCases.mjs} | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) rename src/core/operations/{GetAllCasings.mjs => GetAllCases.mjs} (88%) rename tests/operations/tests/{GetAllCasings.mjs => GetAllCases.mjs} (85%) diff --git a/src/core/config/Categories.json b/src/core/config/Categories.json index 434c8bb6..f5480c5e 100644 --- a/src/core/config/Categories.json +++ b/src/core/config/Categories.json @@ -299,7 +299,7 @@ "From Case Insensitive Regex", "Add line numbers", "Remove line numbers", - "Get All Casings", + "Get All Cases", "To Table", "Reverse", "Sort", diff --git a/src/core/operations/GetAllCasings.mjs b/src/core/operations/GetAllCases.mjs similarity index 88% rename from src/core/operations/GetAllCasings.mjs rename to src/core/operations/GetAllCases.mjs index b3f3e94e..a6035653 100644 --- a/src/core/operations/GetAllCasings.mjs +++ b/src/core/operations/GetAllCases.mjs @@ -9,15 +9,15 @@ import Operation from "../Operation.mjs"; /** * Permutate String operation */ -class GetAllCasings extends Operation { +class GetAllCases extends Operation { /** - * GetAllCasings constructor + * GetAllCases constructor */ constructor() { super(); - this.name = "Get All Casings"; + this.name = "Get All Cases"; this.module = "Default"; this.description = "Outputs all possible casing variations of a string."; this.infoURL = ""; @@ -50,4 +50,4 @@ class GetAllCasings extends Operation { } } -export default GetAllCasings; +export default GetAllCases; diff --git a/tests/operations/index.mjs b/tests/operations/index.mjs index f147e9e7..c89930b0 100644 --- a/tests/operations/index.mjs +++ b/tests/operations/index.mjs @@ -75,7 +75,7 @@ import "./tests/FromDecimal.mjs"; import "./tests/GenerateAllChecksums.mjs"; import "./tests/GenerateAllHashes.mjs"; import "./tests/GenerateDeBruijnSequence.mjs"; -import "./tests/GetAllCasings.mjs"; +import "./tests/GetAllCases.mjs"; import "./tests/GOST.mjs"; import "./tests/Gunzip.mjs"; import "./tests/Gzip.mjs"; diff --git a/tests/operations/tests/GetAllCasings.mjs b/tests/operations/tests/GetAllCases.mjs similarity index 85% rename from tests/operations/tests/GetAllCasings.mjs rename to tests/operations/tests/GetAllCases.mjs index 15cb471a..0b5cbff8 100644 --- a/tests/operations/tests/GetAllCasings.mjs +++ b/tests/operations/tests/GetAllCases.mjs @@ -1,5 +1,5 @@ /** - * GetAllCasings tests. + * GetAllCases tests. * * @author n1073645 [n1073645@gmail.com] * @copyright Crown Copyright 2020 @@ -14,7 +14,7 @@ TestRegister.addTests([ expectedOutput: "test\nTest\ntEst\nTEst\nteSt\nTeSt\ntESt\nTESt\ntesT\nTesT\ntEsT\nTEsT\nteST\nTeST\ntEST\nTEST", recipeConfig: [ { - "op": "Get All Casings", + "op": "Get All Cases", "args": [] } ] @@ -25,7 +25,7 @@ TestRegister.addTests([ expectedOutput: "t\nT", recipeConfig: [ { - "op": "Get All Casings", + "op": "Get All Cases", "args": [] } ] @@ -36,7 +36,7 @@ TestRegister.addTests([ expectedOutput: "", recipeConfig: [ { - "op": "Get All Casings", + "op": "Get All Cases", "args": [] } ]