summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
17 hourstest:custom-line-paragraph: add tests for underscore-lineCraig Jennings
- Add 26 tests covering normal cases, boundary cases, and error cases - Tests verify column width calculation with tabs, Unicode support, various underline characters - Mock read-char function for batch mode testing - All 26 tests passing on first run
17 hoursfix+test:custom-line-paragraph:infinite loop remove-lines-containingCraig Jennings
- Add guard clause to handle empty string input gracefully (would cause infinite loop) - Add 33 comprehensive tests covering normal cases, boundary cases, and error cases - Tests verify Unicode support, regex character escaping, region vs buffer operations - All 33 tests passing
17 hourstest:custom-line-paragraph: remove-duplicate-lines-region-or-bufferCraig Jennings
- Add 35 tests covering normal cases, boundary cases, and error cases - Tests verify duplicate removal with case-insensitive matching, region vs buffer operations, Unicode support - Discovered function requires trailing newlines for duplicate detection and uses case-insensitive matching - All 35 tests passing
17 hours test:custom-line-paragraph: tests for duplicate-line-or-regionCraig Jennings
- Add 31 tests covering normal cases, boundary cases, and error cases - Tests verify duplication with/without comments, Unicode, RTL text, undo behavior, and edge cases - All 31 tests passing
17 hourstest:custom-line-paragraph: add tests and fix region deactivationCraig Jennings
- Add 11 new tests for cj/join-line-or-region covering boundary cases, Unicode, stress testing, and undo behavior - Fix region deactivation in cj/join-line-or-region function - All 62 tests now passing (41 join-line-or-region + 21 join-paragraph)
18 hoursfix:org-roam: copy completed tasks to dailies on state transitionsCraig Jennings
Fixed and enhanced the org-roam hook that copies completed tasks to daily notes: - Fixed hook not triggering immediately after Emacs launch by moving it outside the lazy-loaded use-package org-roam :config block and into with-eval-after-load 'org - Changed hook to trigger for ANY org-done-keyword (DONE, CANCELLED, etc.) instead of just "DONE" - Updated hook to only trigger on non-done → done transitions using org-last-state, preventing duplicate copies when changing between done states (e.g., DONE → CANCELLED) - Added docstrings to org-roam helper functions to fix checkdoc linter warnings - Created comprehensive ERT test suite with 10 tests covering: * Hook registration before org-roam loads (lazy-loading fix) * Transitions to done states (nil→DONE, TODO→DONE, IN-PROGRESS→DONE, WAITING→CANCELLED) * Non-triggering cases (done→done, transitions to non-done states)
4 daystest: Add unit tests for `join-line-or-region` and `join-paragraph`Craig Jennings
Add comprehensive test cases for the `cj/join-line-or-region` and `cj/join-paragraph` functions within the custom-line-paragraph module. These tests cover normal, boundary, and error cases to ensure the proper functionality of line and paragraph joining features. They address various scenarios including line breaks, whitespace, Unicode content, and cursor positioning, enhancing the robustness of existing functionality.
4 daysfeat: undead-buffers: Add `cj/make-buffer-undead` function and testsCraig Jennings
Introduce a new function `cj/make-buffer-undead` that appends a buffer name to the `cj/undead-buffer-list`, preventing it from being killed. This comes along with a suite of tests to check various scenarios and edge cases for handling undead buffers. Additionally, add tests for related functions: `cj/kill-buffer-or-bury-alive`, `cj/kill-buffer-and-window`, and others to ensure they correctly manage buffers, particularly with undead-status considerations. Refactor `undead-buffer-list` naming for consistency and clarity in the module.
6 daystest: dwim-shell-security: Add ERT tests for securityCraig Jennings
Introduce ERT tests for security-related functions within dwim-shell-config. These tests encompass normal, boundary, and error conditions to ensure: - Passwords aren't exposed in command outputs - Temporary files have restricted permissions (mode 600) - Proper cleanup of temporary files post-operation - Handling of edge cases and errors effectively
6 dayschore: testutil-general: update base directory path and commentsCraig Jennings
- Change base directory path from ~/.temp-gptel-tests/ to ~/.temp-emacs-tests/. - Modify accompanying docstrings and comments to reflect this update.
6 daystest: adding tests for compilation, keyboard macros, undead buffersCraig Jennings
2025-10-12changing repositoriesCraig Jennings