verbs tests: read the route id from the table view

This commit is contained in:
Meta Vens 2026-12-03 04:04:37 +01:00
commit fc98772760

View file

@ -321,7 +321,7 @@ mod tests {
(who(&now, "Korr"), who(&now, "Grix Sparkfinger"), who(&now, "Hilda Gatewright"), who(&now, "Brannoch Deepvein"));
let quoted = format!("\"{DEED}\" [");
let deed = between(&view, &quoted, "]").to_owned();
let road = now.routes.iter().find(|route| route.label == "The Road").unwrap().id;
let road = between(&view, "The Road [", "]").to_owned();
assert!(!between(&view, &format!("\"{DEED}\" [{deed}]: "), "\n").contains("Hilda"), "the guard has not heard");
// The witness walks to the gate and tells the guard.