aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-26 20:51:14 -0500
committerCraig Jennings <c@cjennings.net>2025-10-26 20:51:14 -0500
commit9374c42ddd45f61d38dd0993eaa8d2f2dc1cac37 (patch)
treea4502cae0a31340fcf61a5b29786035f94bef59a /tests
parent9d21ebe7eb5d9d803574633f19aea14d2c648dfb (diff)
downloaddotemacs-9374c42ddd45f61d38dd0993eaa8d2f2dc1cac37.tar.gz
dotemacs-9374c42ddd45f61d38dd0993eaa8d2f2dc1cac37.zip
better commentary for tests
Diffstat (limited to 'tests')
-rw-r--r--tests/test-undead-buffers.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test-undead-buffers.el b/tests/test-undead-buffers.el
index 606972be3..38187525f 100644
--- a/tests/test-undead-buffers.el
+++ b/tests/test-undead-buffers.el
@@ -1,7 +1,16 @@
;;; test-undead-buffers.el --- -*- coding: utf-8; lexical-binding: t; -*-
;;; Commentary:
-;;
+;; ERT tests for undead-buffers.el.
+;; Exercises kill vs bury decisions driven by cj/buffer-bury-alive-list
+;; and window-management helpers.
+;; Coverage:
+;; - cj/kill-buffer-or-bury-alive: kills non-listed buffers; buries listed; C-u adds to list
+;; - cj/kill-buffer-and-window: deletes selected window, then kill/bury buffer as appropriate
+;; - cj/kill-other-window: deletes the other window, then kill/bury that buffer
+;; - cj/kill-all-other-buffers-and-windows: keeps only current window/buffer
+;; Tests isolate state with temporary buffers/windows and restore cj/buffer-bury-alive-list.
+;; Note: bury-buffer does not delete windows; tests assert buffer liveness, not window removal.
;;; Code: