branch: elpa/adoc-mode commit 4e13247892729c190eaa7958d846ba1a30beb2fd Author: Florian Kaufmann <sensor...@gmail.com> Commit: Florian Kaufmann <sensor...@gmail.com>
test: added test for adjust-title-del --- adoc-mode-test.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/adoc-mode-test.el b/adoc-mode-test.el index 51221b296a..6263e58fdb 100644 --- a/adoc-mode-test.el +++ b/adoc-mode-test.el @@ -531,6 +531,11 @@ (adoctest-trans "= five" "= five =" '(adoc-toggle-title-type t)) (adoctest-trans "= six =" "= six" '(adoc-toggle-title-type t))) +(ert-deftest adoctest-test-adjust-title-del () + (adoctest-trans "lorem!\n===!" "lorem\n=====" '(adoc-adjust-title-del)) + (adoctest-trans "lorem!\n========!" "lorem\n=====" '(adoc-adjust-title-del)) + (adoctest-trans "lorem!\n=====!" "lorem\n=====" '(adoc-adjust-title-del))) + (ert-deftest adoctest-pre-test-byte-compile () ;; todo: also test for warnings (when (file-exists-p "adoc-mode.elc")