improve IRC channel continuity and formatting

This commit is contained in:
Andy Dixon
2026-08-13 17:35:32 +01:00
parent 696661bfa9
commit 49064a845c
11 changed files with 601 additions and 42 deletions
+10
View File
@@ -102,6 +102,16 @@ func TestCreateTabName(t *testing.T) {
}
}
func TestMergeIRCRoomsPreservesConfiguredAndRememberedOrder(t *testing.T) {
got := mergeIRCRooms(
[]string{" #configured ", "#Shared"},
[]string{"#shared", "#last-session", "", "#CONFIGURED"},
)
if joined := strings.Join(got, ","); joined != "#configured,#Shared,#last-session" {
t.Fatalf("mergeIRCRooms() = %q, want configured rooms followed by new remembered rooms", joined)
}
}
// ---------------------------------------------------------------------------
// RenameSession on non-existent session
// ---------------------------------------------------------------------------