Versions in this module Expand all Collapse all v0 v0.0.19 Jul 25, 2025 Changes in this version + func RunSpecs(stdout io.Writer, stderr io.Writer, rawSpecs []RawSpec) bool + func ShowDiff(w io.Writer, expected_ any, got_ any) + type AssertionMismatch struct + Assertion string + Expected T + Got T + type Movements = map[string]map[string]map[string]*big.Int + type RawSpec struct + NumscriptContent string + NumscriptPath string + SpecsFileContent []byte + SpecsPath string + func ReadSpecsFiles(paths []string) ([]RawSpec, error) + type Specs struct + Balances interpreter.Balances + FeatureFlags []string + Meta interpreter.AccountsMetadata + TestCases []TestCase + Vars interpreter.VariablesMap + type SpecsResult struct + Cases []TestCaseResult + Failing uint + Passing uint + Total uint + func Check(program parser.Program, specs Specs) (SpecsResult, interpreter.InterpreterError) + type TestCase struct + Balances interpreter.Balances + ExpectAccountsMeta interpreter.AccountsMetadata + ExpectMissingFunds bool + ExpectMovements Movements + ExpectPostings []interpreter.Posting + ExpectTxMeta map[string]string + ExpectVolumes interpreter.Balances + It string + Meta interpreter.AccountsMetadata + Vars interpreter.VariablesMap + type TestCaseResult struct + Balances interpreter.Balances + FailedAssertions []AssertionMismatch[any] + It string + Meta interpreter.AccountsMetadata + Pass bool + Vars interpreter.VariablesMap + type TestResult struct + File string + Result TestCaseResult + Specs Specs