Brings over the uncommitted agent-mei work (Mac checkout, Sep 22) plus box follow-ups (Oct 17: agent_mei action namespace in keymap/zed.rs, MEI_BRIDGE.md, RENAME_AGENT_MEI.md, unmetered receipts report 0 uJ). joule_core, JOULE_CODE_* and JouleDB names unchanged. *.bak.* scratch files excluded.
28 lines
1 KiB
Rust
28 lines
1 KiB
Rust
//! 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")
|
||
);
|
||
}
|