branch: elpa/adoc-mode
commit 48c9b7181812f2f6703a38f17a3c64f83796d66c
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    [Fix #64] Add regression test for passthrough block face
    
    The reported issue cannot be reproduced with current code — passthrough
    blocks correctly receive adoc-passthrough-face. Add a minimal test case
    matching the bug report (4 pluses, single-line content with special
    characters) to prevent regressions.
---
 test/adoc-mode-test.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test/adoc-mode-test.el b/test/adoc-mode-test.el
index 340c6611da..80384dd186 100644
--- a/test/adoc-mode-test.el
+++ b/test/adoc-mode-test.el
@@ -308,6 +308,13 @@ Don't use it for anything real.")
                   "********" adoc-meta-hide-face "\n" nil
                   "********" adoc-meta-hide-face "\n"))
 
+;; Regression test for https://github.com/bbatsov/adoc-mode/issues/64
+(ert-deftest adoctest-test-passthrough-minimal ()
+  (adoctest-faces "passthrough-minimal"
+                  "++++" adoc-meta-hide-face "\n" nil
+                  "\\lambda_{T}" adoc-passthrough-face "\n" nil
+                  "++++" adoc-meta-hide-face))
+
 (ert-deftest adoctest-test-open-block ()
   (adoctest-faces "open-block"
                   "--" adoc-meta-hide-face "\n" nil

Reply via email to