aboutsummaryrefslogtreecommitdiff
path: root/.ai/scripts/tests
diff options
context:
space:
mode:
Diffstat (limited to '.ai/scripts/tests')
-rw-r--r--.ai/scripts/tests/test-lint-org.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/.ai/scripts/tests/test-lint-org.el b/.ai/scripts/tests/test-lint-org.el
index d4b3ba0..3a83602 100644
--- a/.ai/scripts/tests/test-lint-org.el
+++ b/.ai/scripts/tests/test-lint-org.el
@@ -342,6 +342,24 @@ content
(should (member 'suspicious-language-in-src-block
(lo-test--checkers judgments)))))
+;; mu4e:msgid: links are registered by mu4e at runtime in a live Emacs; in
+;; batch, org-lint parses them as fuzzy heading refs and reports "Unknown
+;; fuzzy location" — a false positive (home's todo.org, 2026-06-11).
+;; lint-org pre-registers known runtime link types so they parse as links.
+(defconst lo-test--runtime-link "\
+* Heading
+
+See [[mu4e:msgid:abc123@mail.example.com][the thread with Jonathan]].
+")
+
+(ert-deftest lo-runtime-link-type-is-not-flagged ()
+ (let* ((out (lo-test--run lo-test--runtime-link))
+ (res (plist-get out :result))
+ (judgments (lo-test--judgments (plist-get out :issues))))
+ (should (equal lo-test--runtime-link res))
+ (should (= 0 (plist-get out :fixes)))
+ (should-not (member 'invalid-fuzzy-link (lo-test--checkers judgments)))))
+
;;; ---------------------------------------------------------------------------
;;; cj-comment block — Craig's annotation convention is silently suppressed