emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode c1059d6 387/486: Added angle bracket tests, some


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode c1059d6 387/486: Added angle bracket tests, some of which fail without the fix
Date: Sat, 7 Aug 2021 09:25:58 -0400 (EDT)

branch: elpa/rust-mode
commit c1059d6e8bdc6413cc7a05edd1b44205acc3bc15
Author: Miodrag Milenkovic <miodrag.milenkovic@gmail.com>
Commit: Miodrag Milenkovic <miodrag.milenkovic@gmail.com>

    Added angle bracket tests, some of which fail without the fix
---
 rust-mode-tests.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index 42d2dad..70603e3 100644
--- a/rust-mode-tests.el
+++ b/rust-mode-tests.el
@@ -2414,6 +2414,14 @@ fn main() {
      "/* " font-lock-comment-delimiter-face
      "no-op */" font-lock-comment-face)))
 
+(ert-deftest font-lock-fontify-angle-brackets ()
+    "Test that angle bracket fontify"
+    (should (equal (rust-test-fontify-string "<>") "<>"))
+    (should (equal (rust-test-fontify-string "<foo>") "<foo>"))
+    (should (equal (rust-test-fontify-string "<<>>") "<<>>"))
+    (should (equal (rust-test-fontify-string "<>>") "<>>"))
+    (should (equal (rust-test-fontify-string "<<>") "<<>")))
+
 (ert-deftest rust-test-basic-paren-matching ()
   (rust-test-matching-parens
    "



reply via email to

[Prev in Thread] Current Thread [Next in Thread]