Skip to main content

baseline

Function baseline 

Source
pub fn baseline() -> Vec<EvalCase<(), Expectation>>
Expand description

The ready-made baseline capability suite: every embedded case, parsed and concatenated.

Returns EvalCase<(), Expectation> cases (no setup; the easy Agent path), ready to hand straight to run_suite:

let report = eval_core::run_suite(&my_agent, &eval_core::baseline());

§Why this is infallible at the call site

The embedded RON is authored and tested IN THIS CRATE, so a parse failure here would be OUR bug, not the user’s — and the baseline_parses_and_is_well_formed test parses exactly these files on every cargo test, catching any malformed edit before release. Hence this returns the Vec directly and expects on parse, rather than burdening every caller with a Result they can’t meaningfully handle. Files load in sorted (filename) order, cases in authored order within each file.

To instead get the raw files as a copy-and-edit template, see baseline_files.