Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/operations/GetAllCasings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class GetAllCasings extends Operation {
}
result += temp.join("") + "\n";
}
return result;
return result.slice(0, -1);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/operations/tests/GetAllCasings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TestRegister.addTests([
{
name: "All casings of test",
input: "test",
expectedOutput: "test\nTest\ntEst\nTEst\nteSt\nTeSt\ntESt\nTESt\ntesT\nTesT\ntEsT\nTEsT\nteST\nTeST\ntEST\nTEST\n",
expectedOutput: "test\nTest\ntEst\nTEst\nteSt\nTeSt\ntESt\nTESt\ntesT\nTesT\ntEsT\nTEsT\nteST\nTeST\ntEST\nTEST",
recipeConfig: [
{
"op": "Get All Casings",
Expand All @@ -22,7 +22,7 @@ TestRegister.addTests([
{
name: "All casings of t",
input: "t",
expectedOutput: "t\nT\n",
expectedOutput: "t\nT",
recipeConfig: [
{
"op": "Get All Casings",
Expand All @@ -33,7 +33,7 @@ TestRegister.addTests([
{
name: "All casings of null",
input: "",
expectedOutput: "\n",
expectedOutput: "",
recipeConfig: [
{
"op": "Get All Casings",
Expand Down