Skip to content

Commit

Permalink
[PTRun][Calculator]Fix unit tests on non-english systems (#36569)
Browse files Browse the repository at this point in the history
* fix tests

* update comment
  • Loading branch information
htcfreek authored Jan 8, 2025
1 parent 809791d commit 308c4b8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ public void NoErrorForHumanMultiplicationExpressions(string typedString)
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, "=");

Expand Down

0 comments on commit 308c4b8

Please sign in to comment.