forked from 1b-agent/fieldcraft-upstream
The oracle binary (modelcraft-testkit) runs each case's recipe through the command engine, measures its quantities by JSON pointers into step outputs or commands, compares them with the cited references and the frozen fixtures, and writes docs/oracle.md. 20 theory cases (patch tests of every solid element, Timoshenko cantilevers, Lame, Kirsch, beam frequencies, torsion and bending through couplings, explicit waves and impact, CDT invariants), 8 published benchmarks (MacNeal-Harder patch, straight and curved cantilevers, thick cylinder, Scordelis-Lo with solids, NAFEMS LE1, LE10, FV32) and 10 pending cases with citations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NmAttHhUZTokgPeEJia8sm
16 lines
830 B
Rust
16 lines
830 B
Rust
//! Test tooling (a dev-dependency only, `cargo xtask layers`).
|
|
//!
|
|
//! [`corpus`] is the meshing test corpus: parts built with SolidCraft from recipes committed in
|
|
//! `tests/corpus/<name>/recipe.json`, and analytic shapes generated in code with closed-form
|
|
//! volumes. Meshing tests load their geometry from here; [`runner`] (the `corpus` binary,
|
|
//! `cargo xtask corpus`) builds and meshes every part and writes docs/meshing/corpus.md.
|
|
//!
|
|
//! [`oracle`] (the `oracle` binary, `cargo xtask oracle`) runs the verification and validation
|
|
//! cases of `tests/oracle` against their references and fixtures and writes docs/oracle.md.
|
|
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
#![forbid(unsafe_code)]
|
|
|
|
pub mod corpus;
|
|
pub mod oracle;
|
|
pub mod runner;
|