branch: elpa/rust-mode
commit c1059d6e8bdc6413cc7a05edd1b44205acc3bc15
Author: Miodrag Milenkovic <[email protected]>
Commit: Miodrag Milenkovic <[email protected]>
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
"