From a08f7b5fac86030dadfebfb266a487475e787d99 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Fri, 30 Oct 2026 00:36:55 -0600 Subject: [PATCH] test(host): a books home's files are listed with one separator on every OS P11c run 7 on Windows: the walk spelled `.claude\settings.json`. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp --- crates/ledger-host/tests/books_home.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/ledger-host/tests/books_home.rs b/crates/ledger-host/tests/books_home.rs index 042b928..6bcf230 100644 --- a/crates/ledger-host/tests/books_home.rs +++ b/crates/ledger-host/tests/books_home.rs @@ -14,7 +14,13 @@ fn names(dir: &Path) -> Vec { if p.is_dir() { walk(base, &p, out); } else { - out.push(p.strip_prefix(base).unwrap().to_string_lossy().into_owned()); + // One spelling on every OS (Windows walks with backslashes). + out.push( + p.strip_prefix(base) + .unwrap() + .to_string_lossy() + .replace('\\', "/"), + ); } } }