Microsoft PowerToys version
0.94.0
Installation method
PowerToys auto-update
Area(s) with issue?
Command Palette
Steps to reproduce
UT Microsoft.CmdPal.Ext.Calc.UnitTests.QueryTests.TrigModeSettingsTest
passes under en-US but fails under cultures that use different decimal point symbol. This suggests culture-sensitive parsing/formatting or string comparisons in either the test or the code under test.
|
[DataTestMethod] |
|
[DataRow("sin(60)", "-0.30481", CalculateEngine.TrigMode.Radians)] |
|
[DataRow("sin(60)", "0.866025", CalculateEngine.TrigMode.Degrees)] |
|
[DataRow("sin(60)", "0.809016", CalculateEngine.TrigMode.Gradians)] |
|
public void TrigModeSettingsTest(string input, string expected, CalculateEngine.TrigMode trigMode) |
|
{ |
Assert.IsTrue failed. Calc trigMode convert result isn't correct. Current result: -0,30481062110222
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
Additional Information
No response
Other Software
No response
Microsoft PowerToys version
0.94.0
Installation method
PowerToys auto-update
Area(s) with issue?
Command Palette
Steps to reproduce
UT
Microsoft.CmdPal.Ext.Calc.UnitTests.QueryTests.TrigModeSettingsTestpasses under en-US but fails under cultures that use different decimal point symbol. This suggests culture-sensitive parsing/formatting or string comparisons in either the test or the code under test.
PowerToys/src/modules/cmdpal/Tests/Microsoft.CmdPal.Ext.Calc.UnitTests/QueryTests.cs
Lines 69 to 74 in 8f9d013
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
Additional Information
No response
Other Software
No response