Skip to content

Commit 013622a

Browse files
committed
Restore to default in calculator tests
1 parent fb4da69 commit 013622a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Flow.Launcher.Test/Plugins/CalculatorTest.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public class CalculatorPluginTest
2222
private readonly Engine _engine = new(new Configuration
2323
{
2424
Scope = new Dictionary<string, object>
25-
{
26-
{ "e", Math.E }, // e is not contained in the default mages engine
27-
}
25+
{
26+
{ "e", Math.E }, // e is not contained in the default mages engine
27+
}
2828
});
2929

3030
public CalculatorPluginTest()
@@ -116,6 +116,9 @@ public void ThousandsSeparatorTest_LargeNumber()
116116
[TestCase(@"invalid_expression", "")]
117117
public void CalculatorTest(string expression, string result)
118118
{
119+
_settings.UseThousandsSeparator = false;
120+
_settings.DecimalSeparator = DecimalSeparator.UseSystemLocale;
121+
119122
ClassicAssert.AreEqual(GetCalculationResult(expression), result);
120123
}
121124

0 commit comments

Comments
 (0)