Expanding Standard Library
Expanding functions in the standard library.
This commit is contained in:
parent
9dba1a2dfd
commit
5556010c91
12 changed files with 366 additions and 3 deletions
|
|
@ -90,6 +90,14 @@ public class StdlibFunctionsTests
|
|||
AssertSuccess(result, expected, _interp);
|
||||
}
|
||||
|
||||
[TestCase("sqrt(25)", 5)]
|
||||
[TestCase("sqrt(1)", 1)]
|
||||
public void Sqrt_Works(string expr, decimal expected)
|
||||
{
|
||||
var result = _interp.Interpret(expr);
|
||||
AssertSuccess(result, expected, _interp);
|
||||
}
|
||||
|
||||
[TestCase("pi", "3.1415926535897931")]
|
||||
[TestCase("e", "2.7182818284590451")]
|
||||
[TestCase("tau", "6.2831853071795862")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue