From b2d5176d4a5aff5a4ee76f236db65ee8f7ff7ea1 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Sat, 14 Mar 2026 09:52:20 +0100 Subject: [PATCH] Fix bug where exercises with a name ending in a number didn't work --- src/Exercism.TestRunner.CSharp/Options.cs | 3 ++- tests/{dotnet-nine/DotnetNine.cs => dotnet9/Dotnet9.cs} | 0 .../{dotnet-nine/DotnetNine.csproj => dotnet9/Dotnet9.csproj} | 0 .../DotnetNineTests.cs => dotnet9/Dotnet9Tests.cs} | 0 tests/{dotnet-nine => dotnet9}/expected_results.json | 0 5 files changed, 2 insertions(+), 1 deletion(-) rename tests/{dotnet-nine/DotnetNine.cs => dotnet9/Dotnet9.cs} (100%) rename tests/{dotnet-nine/DotnetNine.csproj => dotnet9/Dotnet9.csproj} (100%) rename tests/{dotnet-nine/DotnetNineTests.cs => dotnet9/Dotnet9Tests.cs} (100%) rename tests/{dotnet-nine => dotnet9}/expected_results.json (100%) diff --git a/src/Exercism.TestRunner.CSharp/Options.cs b/src/Exercism.TestRunner.CSharp/Options.cs index 5e490eae..6880da7f 100644 --- a/src/Exercism.TestRunner.CSharp/Options.cs +++ b/src/Exercism.TestRunner.CSharp/Options.cs @@ -30,5 +30,6 @@ public Options(string slug, string inputDirectory, string outputDirectory) => public string ResultsJsonFilePath => Path.GetFullPath(Path.Combine(OutputDirectory, "results.json")); - private string Exercise => Slug.Dehumanize().Pascalize(); + // Work around a regression bug: https://github.com/Humanizr/Humanizer/issues/1668 + private string Exercise => Slug.Pascalize().Replace("-", ""); } \ No newline at end of file diff --git a/tests/dotnet-nine/DotnetNine.cs b/tests/dotnet9/Dotnet9.cs similarity index 100% rename from tests/dotnet-nine/DotnetNine.cs rename to tests/dotnet9/Dotnet9.cs diff --git a/tests/dotnet-nine/DotnetNine.csproj b/tests/dotnet9/Dotnet9.csproj similarity index 100% rename from tests/dotnet-nine/DotnetNine.csproj rename to tests/dotnet9/Dotnet9.csproj diff --git a/tests/dotnet-nine/DotnetNineTests.cs b/tests/dotnet9/Dotnet9Tests.cs similarity index 100% rename from tests/dotnet-nine/DotnetNineTests.cs rename to tests/dotnet9/Dotnet9Tests.cs diff --git a/tests/dotnet-nine/expected_results.json b/tests/dotnet9/expected_results.json similarity index 100% rename from tests/dotnet-nine/expected_results.json rename to tests/dotnet9/expected_results.json