aboutsummaryrefslogtreecommitdiff
path: root/test-from-git
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 03:15:14 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 03:15:14 -0500
commitcbd2334ee3a589bb9335e1bd2a26f3e906180c38 (patch)
tree4b6a981aea3251d0345ea99df65de116dabb865d /test-from-git
parent77fe06b0c6f01d1d76bdf503c1b12286ac29aa0a (diff)
downloadorg-drill-cbd2334ee3a589bb9335e1bd2a26f3e906180c38.tar.gz
org-drill-cbd2334ee3a589bb9335e1bd2a26f3e906180c38.zip
test: cover org-drill-time-to-inactive-org-timestamp (upstream #59)
I added a regression test for `org-drill-time-to-inactive-org-timestamp` to lock in the cherry-pick from commit 4c6e62a, which fixed upstream issue #59 on the GitLab tracker. Chipschap reported timestamps like `[Y-08-27 Wed 16:%]` getting written into DRILL_LAST_REVIEWED. The root cause is that Org 9.6+ dropped the angle brackets around `(cdr org-time-stamp-formats)`, so the original `(substring ... 1 -1)` started slicing off the leading `%` of `%Y` and the trailing `M` of `%M`. The fix took the Org 9.6+ branch via `(org-time-stamp-format t 'no-bracket)` instead. The new test file has 7 ERT tests across Normal, Boundary, and Error categories. The Error cases assert the output has no stray `%` characters and no literal `Y` in place of the year. I confirmed the same tests fail when I drop in the original buggy implementation, so they catch the bug shape from the report.
Diffstat (limited to 'test-from-git')
0 files changed, 0 insertions, 0 deletions