mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 12:46:47 +02:00
[PTRun][Calculator]Fix unit tests on non-english systems (#36569)
* fix tests * update comment
This commit is contained in:
@@ -230,6 +230,7 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator.UnitTests
|
|||||||
public void RightAnswerForHumanMultiplicationExpressions(string typedString, double answer)
|
public void RightAnswerForHumanMultiplicationExpressions(string typedString, double answer)
|
||||||
{
|
{
|
||||||
// Setup
|
// 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 expectedQuery = new(typedString);
|
||||||
Query expectedQueryWithKeyword = new("=" + typedString, "=");
|
Query expectedQueryWithKeyword = new("=" + typedString, "=");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user