Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

test(host): compare memory test results with empty lists

leepokai9b708e44db3b
diff --git a/host/crates/memory/src/dream/tests.rs b/host/crates/memory/src/dream/tests.rs
index bea6d78d..d087a0b8 100644
--- a/host/crates/memory/src/dream/tests.rs
+++ b/host/crates/memory/src/dream/tests.rs
@@ -228,7 +228,7 @@ fn reviews_rewrite_dated_lines_in_the_past_tense_once() {
let snapshot = super::snapshot(&conn, "a", false, "2026-10-18").unwrap();
let again = Plan { review: vec![review("Went to Singapore in July 2026", "Went to Singapore")], ..Plan::default() };
let (kept, _) = audit(&snapshot, &[], again);
- assert!(edits(&conn, &snapshot, &kept, &[]).unwrap().0.files.is_empty());
+ assert_eq!(edits(&conn, &snapshot, &kept, &[]).unwrap().0.files, [] as [Edit; 0]);
}
#[test]
diff --git a/host/crates/memory/src/files/tests.rs b/host/crates/memory/src/files/tests.rs
index f9a47685..c442e437 100644
--- a/host/crates/memory/src/files/tests.rs
+++ b/host/crates/memory/src/files/tests.rs
@@ -135,7 +135,7 @@ fn records_versions_and_indexes_live_notes() {
assert_eq!(forget_layer(&conn, Some("a")).unwrap(), [MAIN, "people.md"]);
assert_eq!(layer(&conn, Some("a")).unwrap(), [] as [File; 0]);
- assert!(facts_of(&conn, Some("a")).unwrap().is_empty());
+ assert_eq!(facts_of(&conn, Some("a")).unwrap(), [] as [Fact; 0]);
assert_eq!(layer(&conn, None).unwrap().len(), 1);
}