//! Joule Code conformance (SPEC §8): agent-mei, the standard's reference //! *consumer*, runs the published C1–C5 wire-vector suites against the version //! of the standard it builds on. The vectors are vendored under //! `tests/conformance/v1/` from `open-standards` at the dependency's pinned rev //! (see that directory's README). A failure here means the consumer and the //! standard have drifted. use std::path::Path; #[test] fn published_vector_pack_passes() { let dir = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/conformance/v1"); let report = joule_code_conformance::verify_pack(&dir) .unwrap_or_else(|error| panic!("running the conformance pack failed: {error}")); assert_eq!( report.fail, 0, "conformance vectors failed:\n{}", report.lines.join("\n") ); // Guard against a vacuous pass (e.g. empty vector files). assert!( report.pass > 0, "expected at least one passing vector; report:\n{}", report.lines.join("\n") ); }