[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/adoc-mode 0f7619cfce 027/199: enheanced inline-subst-bound
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/adoc-mode 0f7619cfce 027/199: enheanced inline-subst-boundaries test |
Date: |
Sun, 3 Sep 2023 06:59:22 -0400 (EDT) |
branch: elpa/adoc-mode
commit 0f7619cfcec09da983abcf0748d1d4eadee00f62
Author: Florian Kaufmann <sensorflo@gmail.com>
Commit: Florian Kaufmann <sensorflo@gmail.com>
enheanced inline-subst-boundaries test
---
adoc-mode-test.el | 42 +++++++++++++++++++++++++++++++++---------
1 file changed, 33 insertions(+), 9 deletions(-)
diff --git a/adoc-mode-test.el b/adoc-mode-test.el
index fb6a7309be..e2d4b992d0 100644
--- a/adoc-mode-test.el
+++ b/adoc-mode-test.el
@@ -206,29 +206,53 @@
(ert-deftest adoctest-test-inline-subst-boundaries ()
(adoctest-faces "inline-subst-boundaries"
+ ;; 1) don't cross title boundaries.
+ ;; 2) don't cross paragraph boundaries.
+ ;; 3) verify that the (un)constrained quotes would work however
"== " markup-meta-hide-face "chapter ** 1" markup-title-1-face "\n" nil
"lorem ** ipsum\n" 'no-face
"\n" nil
+ "lorem " 'no-face "**" markup-meta-hide-face " ipsum " markup-strong-face
"**" markup-meta-hide-face "\n" nil
+ "\n" nil
- "== " markup-meta-hide-face "chapter ** 1" markup-title-1-face " =="
markup-meta-hide-face "\n" nil
- "lorem ** ipsum\n" 'no-face
+ "== " markup-meta-hide-face "chapter __ 1" markup-title-1-face " =="
markup-meta-hide-face "\n" nil
+ "lorem __ ipsum\n" 'no-face
+ "\n" nil
+ "lorem " 'no-face "__" markup-meta-hide-face " ipsum " markup-emphasis-face
"__" markup-meta-hide-face "\n" nil
"\n" nil
- "chapter ** 1" markup-title-1-face "\n" nil
+ "chapter ++ 1" markup-title-1-face "\n" nil
"------------" markup-meta-hide-face "\n" nil
- "lorem ** ipsum\n" 'no-face
+ "lorem ++ ipsum\n" 'no-face
+ "\n" nil
+ "lorem " 'no-face "++" markup-meta-hide-face " ipsum "
markup-typewriter-face "++" markup-meta-hide-face "\n" nil
"\n" nil
- "." markup-meta-face "block ** title" markup-gen-face "\n" nil
- "lorem ** ipsum\n" 'no-face
+ "." markup-meta-face "block ^title" markup-gen-face "\n" nil
+ "lorem^ ipsum\n" 'no-face
"\n" nil
+ "lorem " 'no-face "^" markup-meta-hide-face " ipsum "
markup-superscript-face "^" markup-meta-hide-face "\n" nil
+ "\n" nil
+
+ ;; Being able to use a ** that potentially could be mistaken as an end
+ ;; delimiter as start delimiter
+ "== " markup-meta-hide-face "chapter ** 1" markup-title-1-face "\n" nil
+ "lorem " 'no-face "**" markup-meta-hide-face " ipsum " markup-strong-face
"**" markup-meta-hide-face "\n" nil
+ "\n" nil
+
+ ;; 1) don't cross list item boundaries
+ ;; 2) don't mistake a list item '**' as an unconstrained quote '**' (either
start or end)
+ "-" markup-list-face " " nil "lorem ** ipsum\n" 'no-face
+ "-" markup-list-face " " nil "dolor ** sit\n" 'no-face
+ "**" markup-list-face " " nil "lorem ** ipsumt\n" 'no-face
+ "**" markup-list-face " " nil "dolor ** sit\n" 'no-face
+ ;; todo: not reaching into a labeled list item text does no yet work
+ ;; "lorem ** ipsum " markup-gen-face "::" markup-list-face " " nil "sit **
dolor\n" 'no-face
;; test also
;; - over beginning of labeled
- ;; - over end of block title
- ;; - over beginning of two line title
- ;; - over end of one line title
+
))
;; todo: also test for warnings
- [nongnu] elpa/adoc-mode 16fe6044b7 081/199: bumped version to 0.6.0, (continued)
- [nongnu] elpa/adoc-mode 16fe6044b7 081/199: bumped version to 0.6.0, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 091f46e866 061/199: test: added test for goto-ref-label, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 2322c32185 076/199: extracted make-two-line-title-underline from make-two-line-title, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode efa9ef97a0 080/199: list item tempos respect tab-width and indent-tabs-mode, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 9c395f4bf9 093/199: it's now less likely that text between two adjacent delimited blocks is misinterpreted as delimited block, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 06f9792fcd 011/199: added further simple tests for constrained/uncronstrained quotes, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode ead05da007 014/199: split up the current big test into smaller ones, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode f519baf304 022/199: addef *.elc files to .gitignore, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 886497d6a6 023/199: added a few medium complex tests for (un)constrained quotes, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode b65c7fcb92 026/199: block title now fits into the new concept, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 0f7619cfce 027/199: enheanced inline-subst-boundaries test,
ELPA Syncer <=
- [nongnu] elpa/adoc-mode b8e8574afa 038/199: introduced adoc-attribute-face-alist, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode e03d63e0b3 039/199: extened anchors unittest and fixed revealed bug, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 6ccb9d6de5 009/199: intermediate checkin - to be removed, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode ce247928ec 021/199: added test for byte-compile-file without errors, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 105519ce37 033/199: changed image fontification without tests, added tests for attribute lists, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 3d2ab81750 041/199: new style font lock for xref inline macro, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 9c404a4e2d 042/199: test2, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 2756c62d86 043/199: revert test2, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode d4a57c5c03 045/199: cleaned up file comments a bit, ELPA Syncer, 2023/09/03
- [nongnu] elpa/adoc-mode 97602c1577 046/199: fixed important typo, ELPA Syncer, 2023/09/03