tests(stdlib): reorganize and expand StandardLibrary tests
- Switch tests to use Initializer.InitializeAll for setup - Split stdlib tests by category: Angle, Rounding, Trig (incl. hyperbolic), NumberTheory, Random - Add comprehensive tests invoking functions via InputInterpreter.Interpret() - Register Bernoulli in Initializer so random tests cover
This commit is contained in:
parent
1d86b2bc19
commit
106efbc86e
7 changed files with 410 additions and 3 deletions
|
|
@ -3,7 +3,6 @@ using CSMic.StandardLibrary;
|
|||
using NUnit.Framework;
|
||||
using CSMic.StandardLibrary.Functions;
|
||||
using System.Globalization;
|
||||
using System.Reflection.Metadata;
|
||||
|
||||
namespace CSMic.Tests;
|
||||
|
||||
|
|
@ -16,8 +15,8 @@ public class StdlibFunctionsTests
|
|||
{
|
||||
CultureInfo.CurrentCulture = CultureInfo.InvariantCulture;
|
||||
_interp = new InputInterpreter();
|
||||
Constants.Initialize(_interp);
|
||||
Functions.Initialize(_interp); ;
|
||||
// Initialize full standard library (functions + constants)
|
||||
Initializer.InitializeAll(_interp);
|
||||
}
|
||||
|
||||
private static void AssertSuccess(decimal result, decimal expected, InputInterpreter interp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue