aboutsummaryrefslogtreecommitdiff
path: root/tests/test-chime-time-left.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-24 15:48:43 -0400
committerCraig Jennings <c@cjennings.net>2026-06-24 15:48:43 -0400
commitab8cc4da57fce5d0a59f4db34fb550919a06ea79 (patch)
tree5155c062f6c24d2629cae17fe16243d07509ce3a /tests/test-chime-time-left.el
parent3814d633ec7087f7d720123a2a2054d14f646ea6 (diff)
downloadchime-ab8cc4da57fce5d0a59f4db34fb550919a06ea79.tar.gz
chime-ab8cc4da57fce5d0a59f4db34fb550919a06ea79.zip
refactor: drive chime--sanitize-title delimiters from one alist
The function matched parens, brackets, and braces with three near-identical cond branches plus a parallel opener-to-closer mapping. That's one balancing algorithm written three times. I replaced it with a single ((open . close) ...) alist driven by assq/rassq. Adding or changing a delimiter pair is now a one-line edit, and there's one code path to reason about. Behavior is unchanged. The existing 30 characterization tests stay green.
Diffstat (limited to 'tests/test-chime-time-left.el')
0 files changed, 0 insertions, 0 deletions