summaryrefslogtreecommitdiff
path: root/rust-mode-tests.el
diff options
context:
space:
mode:
authorMiodrag Milenkovic <miodrag.milenkovic@gmail.com>2019-03-01 12:46:35 -0500
committerMiodrag Milenkovic <miodrag.milenkovic@gmail.com>2019-03-01 12:47:57 -0500
commitc1059d6e8bdc6413cc7a05edd1b44205acc3bc15 (patch)
tree4813c57b12ec76249707b7ebdcd3d08b82ad3d92 /rust-mode-tests.el
parent198c777c2ba58e94a6b035c286c660669a7ce2a9 (diff)
downloadrust-mode-c1059d6e8bdc6413cc7a05edd1b44205acc3bc15.tar.gz
Added angle bracket tests, some of which fail without the fix
Diffstat (limited to 'rust-mode-tests.el')
-rw-r--r--rust-mode-tests.el8
1 files changed, 8 insertions, 0 deletions
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
"