[PTRun][Calculator]Update mages to v3.0.0 and support for randi(n) (#36560)

* update to mages 3.0.0

* allow randi() in calculator plugin

* fix tests and input validation

* fix spell check
This commit is contained in:
Heiko
2025-01-03 17:11:42 +01:00
committed by GitHub
parent 1eec678276
commit 94d712135c
5 changed files with 9 additions and 3 deletions

View File

@@ -192,6 +192,11 @@ namespace Microsoft.PowerToys.Run.Plugin.Calculator.UnitTests
[DataRow("cos", false)]
[DataRow("abs", false)]
[DataRow("1+1.1e3", true)]
[DataRow("randi(8)", true)]
[DataRow("randi()", false)]
[DataRow("randi(0.5)", true)]
[DataRow("rand()", true)]
[DataRow("rand(0.5)", false)]
public void InputValid_TestValid_WhenCalled(string input, bool valid)
{
// Act