tests: the bound test's open count follows the clip; the import test checks follow-ups

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-09 12:07:07 +01:00
commit e31c87cfb9

View file

@ -2404,7 +2404,7 @@ fn each_open_list_holds_its_own_bound_exactly_and_counts_what_it_drops() {
assert!(goals.text.contains("- eureka-body:ruling:R1: A ruling"), "the cited ruling still has its room: {}", goals.text);
assert!(goals.text.len() > GOALS_MAX_BYTES, "the open lists sit outside the goals bound");
assert!(goals.text.contains("more commitments not shown") && goals.text.contains("more asks not shown"));
assert!(goals.open.len() < 12 && goals.open.iter().all(|id| goals.text.contains(id.as_str())), "open is exactly what was shown");
assert!(goals.open.len() < 40 && goals.open.iter().all(|id| goals.text.contains(id.as_str())), "open is exactly what was shown");
assert!(goals.listed.iter().all(|id| !goals.open.contains(id)), "listed (follow-ups, rulings) and open stay apart");
}
@ -7391,9 +7391,6 @@ fn an_imported_item_sorts_by_its_origin_time_not_its_import() {
}
let text = render_responsibilities(&mind, &Slug(INSTANCE.into()), &BTreeMap::new()).unwrap().text;
assert_eq!(listed_follow_ups(&text), ["imp-old", "native", "imp-new"], "{text}");
let at = |needle: &str| text.find(needle).unwrap_or_else(|| panic!("{needle} in {text}"));
assert!(at("m-imported") < at("m-native"), "{text}");
assert!(text.contains("(2020-01-01, "), "an imported memory shows the date it began: {text}");
}
/// A listed line carries about 160 bytes of the item's text, cut on a character boundary with an ellipsis; the whole stays one `huginn view` away.