diff options
author | Joost Kremers <joostkremers@fastmail.fm> | 2022-06-20 22:49:57 +0200 |
---|---|---|
committer | Joost Kremers <joostkremers@fastmail.fm> | 2022-06-20 22:49:57 +0200 |
commit | 0f13ee34c5cfe66e66e34f0ca66c4c7522f4d66e (patch) | |
tree | dfb7834731c17974916c8c8dbe7f8187afb51072 | |
parent | 249ce8deadf3b558ecab20c058f3618394358a31 (diff) |
Add test `parsebib-clean-TeX-markup-nested-macros`.
-rw-r--r-- | test/parsebib-test.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/parsebib-test.el b/test/parsebib-test.el index 3090dd2..e2389e8 100644 --- a/test/parsebib-test.el +++ b/test/parsebib-test.el @@ -244,6 +244,12 @@ (parsebib-clean-TeX-markup "The verb \\textsc{krijgen} as an undative verb.") "The verb KRIJGEN as an undative verb."))) +(ert-deftest parsebib-clean-TeX-markup-nested-macros () + (should (equal (parsebib-clean-TeX-markup "\\textit{\\foo{bar}}") + #("bar" 0 3 (face italic)))) + (should (equal (parsebib-clean-TeX-markup "\\textit{\\foo}}") + #("\\foo" 0 4 (face italic))))) + (ert-deftest parsebib-clean-TeX-markup-nonascii-letters-with-braces () ;; The braces should be removed and the space after it retained. (should (equal (parsebib-clean-TeX-markup "\\AA{} and") "\N{LATIN CAPITAL LETTER A WITH RING ABOVE} and")) |