Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2026 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 + Schema string + TestCases []TestCase + Vars interpreter.VariablesMap + type SpecsResult struct + Cases []TestCaseResult + Failing uint + Passing uint + Skipped uint + Total uint + func Check(program parser.Program, specs Specs) (SpecsResult, interpreter.InterpreterError) + type TestCase struct + Balances interpreter.Balances + ExpectAccountsMeta interpreter.AccountsMetadata + ExpectEndBalances interpreter.Balances + ExpectEndBalancesInclude interpreter.Balances + ExpectMissingFunds bool + ExpectMovements Movements + ExpectNegativeAmount bool + ExpectPostings []interpreter.Posting + ExpectTxMeta map[string]string + Focus bool + It string + Meta interpreter.AccountsMetadata + Skip bool + Vars interpreter.VariablesMap + type TestCaseResult struct + Balances interpreter.Balances + FailedAssertions []AssertionMismatch[any] + It string + Meta interpreter.AccountsMetadata + Pass bool + Postings []interpreter.Posting + Skipped bool + Vars interpreter.VariablesMap + type TestResult struct + File string + Result TestCaseResult + Specs Specs