From 308c4b817efa2100e7df1d15d4595d0391a0f644 Mon Sep 17 00:00:00 2001 From: Heiko <61519853+htcfreek@users.noreply.github.com> Date: Wed, 8 Jan 2025 11:34:13 +0100 Subject: [PATCH] [PTRun][Calculator]Fix unit tests on non-english systems (#36569) * fix tests * update comment --- .../QueryTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator.UnitTest/QueryTests.cs b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator.UnitTest/QueryTests.cs index cd94046473..6f858caf03 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator.UnitTest/QueryTests.cs +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator.UnitTest/QueryTests.cs @@ -230,6 +230,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator.UnitTests public void RightAnswerForHumanMultiplicationExpressions(string typedString, double answer) { // Setup + typedString = typedString.Replace(".", CultureInfo.CurrentCulture.NumberFormat.CurrencyDecimalSeparator); // Workaround to get correct results when the tests are running on a non-english systems. Query expectedQuery = new(typedString); Query expectedQueryWithKeyword = new("=" + typedString, "=");