Restore to default in calculator tests

This commit is contained in:
Jack251970 2026-01-12 11:37:47 +08:00
parent fb4da697a2
commit 013622a2a7

View file

@ -22,9 +22,9 @@ namespace Flow.Launcher.Test.Plugins
private readonly Engine _engine = new(new Configuration
{
Scope = new Dictionary<string, object>
{
{ "e", Math.E }, // e is not contained in the default mages engine
}
{
{ "e", Math.E }, // e is not contained in the default mages engine
}
});
public CalculatorPluginTest()
@ -116,6 +116,9 @@ namespace Flow.Launcher.Test.Plugins
[TestCase(@"invalid_expression", "")]
public void CalculatorTest(string expression, string result)
{
_settings.UseThousandsSeparator = false;
_settings.DecimalSeparator = DecimalSeparator.UseSystemLocale;
ClassicAssert.AreEqual(GetCalculationResult(expression), result);
}