From 3573606670688acad5ff2e60f7fa528152efdc51 Mon Sep 17 00:00:00 2001 From: Seweryn Presnal Date: Thu, 2 Nov 2023 14:48:06 +0000 Subject: [PATCH] Better filter cities from CSV for adjective testing --- commonItems.UnitTests/Linguistics/StringExtensionsTests.cs | 4 +++- commonItems/commonItems.csproj | 2 +- global.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/commonItems.UnitTests/Linguistics/StringExtensionsTests.cs b/commonItems.UnitTests/Linguistics/StringExtensionsTests.cs index 3c73d91c..b5638a85 100644 --- a/commonItems.UnitTests/Linguistics/StringExtensionsTests.cs +++ b/commonItems.UnitTests/Linguistics/StringExtensionsTests.cs @@ -488,7 +488,9 @@ public void AdjectiveRuleExistsForEveryCountryAndMajorCityInTheWorld() { var csv = new WebClient().DownloadString(csvUrl); var cities = CsvReader.ReadFromText(csv) .Select(line => line[0]) - .Where(city => !string.IsNullOrEmpty(city) && !city.StartsWith("Zürich (Kreis")) + .Where(city => !string.IsNullOrEmpty(city)) + .Where(city => !city.StartsWith("Zürich (Kreis")) + .Where(city => !city.StartsWith("Sector ")) .Distinct() .ToList(); diff --git a/commonItems/commonItems.csproj b/commonItems/commonItems.csproj index e0266245..c9af8233 100644 --- a/commonItems/commonItems.csproj +++ b/commonItems/commonItems.csproj @@ -6,7 +6,7 @@ False PGCG.$(AssemblyName) - 9.0.0 + 9.0.1 PGCG https://github.com/ParadoxGameConverters/commonItems.NET https://github.com/ParadoxGameConverters/commonItems.NET diff --git a/global.json b/global.json index 1d6b803d..eb9b9189 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "7.0.402", + "version": "7.0.403", "rollForward": "disable" } }