[PTRun][Calculator]Fix unit tests on non-english systems (#36569)

* fix tests

* update comment
This commit is contained in:
Heiko
2025-01-08 11:34:13 +01:00
committed by GitHub
parent 809791da25
commit 308c4b817e

View File

@@ -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, "=");