From 8b648c214061ef8dd52478860ff1d4079f32a9ea Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 31 Oct 2026 08:53:07 +0100 Subject: [PATCH] huginn-mind tests: a pulse holds a vote or an urgency, never both Co-Authored-By: Claude Sonnet 5.5 --- crates/huginn-mind/src/query.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/huginn-mind/src/query.rs b/crates/huginn-mind/src/query.rs index 3241b84..c7743f5 100644 --- a/crates/huginn-mind/src/query.rs +++ b/crates/huginn-mind/src/query.rs @@ -1472,13 +1472,13 @@ mod tests { note: "n".into(), }) }; - committed(admit(&mut mind, vec![pulse("both", Some(60), Some(1)), pulse("vote", Some(60), None), pulse("urge", None, Some(1)), pulse("none", None, None)])); + committed(admit(&mut mind, vec![pulse("vote", Some(60), None), pulse("urge", None, Some(1)), pulse("vote2", Some(90), None)])); let asking = |alias: &str| { let selection = Selection { descending: true, limit: Some(1), ..with(of_kinds(&[K::Pulse]), any_of(alias, &["true"])) }; ids(&mind.query(&selection).unwrap()) }; let pulse_id = |label: &str| format!("{INSTANCE}:pulse:{label}"); - assert_eq!(asking("voted"), vec![pulse_id("vote")]); + assert_eq!(asking("voted"), vec![pulse_id("vote2")]); assert_eq!(asking("urged"), vec![pulse_id("urge")]); let outside = with(of_kinds(&[K::Pulse]), any_of("voted", &["false"])); assert!(invalid("fields[0].values", "false")(&refused(&mind, &outside)));