diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-26 21:21:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-26 21:21:38 -0500 |
| commit | 03719a065c21bf683a9b90c83ab26ee0dc069cc7 (patch) | |
| tree | d0ee9238323ca6dcf55817c10138e9637f35ab42 /assets/sounds/GoodBadUgly.opus | |
| parent | 220efbbecd366bc3337c73ad4d902716a9733dae (diff) | |
Add test coverage for 4 functions in custom-misc.el:
- cj/replace-fraction-glyphs (24 tests)
- cj/format-region-or-buffer (17 tests)
- cj/count-words-buffer-or-region (20 tests)
- cj/jump-to-matching-paren (18 tests)
Refactored functions using internal/interactive split pattern:
- Internal functions (cj/--function-name) contain business logic with
explicit parameters and validation
- Interactive wrappers handle UI concerns (region detection, messages)
- Tests call internal functions directly (no mocking required)
Bug Fix: cj/--replace-fraction-glyphs
Fixed "Invalid search bound" error when converting glyphs to text.
Original code used fixed end position which became invalid when
replacements changed buffer size. Fixed by using copy-marker for
dynamic end position tracking.
Diffstat (limited to 'assets/sounds/GoodBadUgly.opus')
0 files changed, 0 insertions, 0 deletions
