huskies: merge 927

This commit is contained in:
dave
2026-05-12 17:49:44 +00:00
parent b8945654bf
commit 03a99b3cf1
33 changed files with 119 additions and 25 deletions
+9 -3
View File
@@ -462,7 +462,7 @@ fn status_shows_crdt_done_story_in_done_not_backlog() {
);
// Verify it's not in Backlog section specifically.
let backlog_section = &output[backlog_pos..done_pos];
let backlog_section = output.get(backlog_pos..done_pos).unwrap_or("");
assert!(
!backlog_section.contains("503"),
"503 must not appear in Backlog section: {backlog_section}"
@@ -573,10 +573,16 @@ fn merge_item_failure_snippet_truncated_at_120_chars() {
);
// The snippet should not exceed 120 chars plus the ellipsis character.
let snippet_start = output.find("\u{26D4}").expect("stop sign must be present");
let line = output[snippet_start..].lines().next().unwrap_or("");
let line = output
.get(snippet_start..)
.unwrap_or("")
.lines()
.next()
.unwrap_or("");
// Find the last " — " separator (before the snippet) and take what follows.
if let Some(sep_pos) = line.rfind(" \u{2014} ") {
let snippet = &line[sep_pos + 5..]; // " — " is 5 bytes (space + 3-byte em dash + space)
// " — " is 5 bytes (space + 3-byte em dash + space)
let snippet = line.get(sep_pos + 5..).unwrap_or("");
assert!(
snippet.chars().count() <= 122, // 120 chars + "…" (1 char) + possible trailing
"snippet should be at most ~121 chars: {snippet}"