From 62f0894778f6c0a1a0691ae868166d3d0cd6e702 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 31 Oct 2026 13:48:55 +0100 Subject: [PATCH] persona-goals-in-turn: the junk-token check reads the rulings list, not the item text Co-Authored-By: Claude Sonnet 5.5 --- crates/mind-body/src/persona/tests.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/mind-body/src/persona/tests.rs b/crates/mind-body/src/persona/tests.rs index 2df81f0..3bc1983 100644 --- a/crates/mind-body/src/persona/tests.rs +++ b/crates/mind-body/src/persona/tests.rs @@ -900,7 +900,9 @@ fn rulings_named_in_a_note_or_an_item_are_resolved_by_their_own_title() { for line in ["- eureka-body:ruling:from-note: Note law", "- eureka-body:ruling:from-item: Item law", "- eureka-body:ruling:src: Source", "- eureka-body:ruling:ghost: not in your mind"] { assert!(text.contains(line), "{text}"); } - assert!(!text.contains("Not cited") && !text.contains("x:ruling") && !text.contains("- :ruling:y"), "{text}"); + let listed = text.split("Rulings these cite").nth(1).unwrap(); + assert_eq!(listed.lines().filter(|line| line.starts_with("- ")).count(), 4, "{text}"); + assert!(!listed.contains("Not cited"), "{text}"); } #[test]