cli test: the hold of spec B is its own run's question and not A's

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-01 05:43:30 +01:00
commit fa5c65c6f4

View file

@ -898,10 +898,12 @@ fn blocked_names_the_questions_that_hold_a_spec_as_the_gate_reads_them() {
"a question raised in the run holds its claim: {}",
shown.out
);
assert!(!shown.out.contains(&other_question), "a question raised in another run does not hold A: {}", shown.out);
let shown = held("B");
assert!(
held("B").out.starts_with("matched 0 "),
"and not a spec the run never claimed: {}",
held("B").out
shown.out.starts_with(&format!("{other_question} InForce ")) && !shown.out.contains(&format!("{question} ")) && shown.out.contains("matched 1 "),
"B is held by its own run's question only: {}",
shown.out
);
let PipelineDocument::Ruling(mut answer) = ruling(None) else {