diff options
| author | Miodrag Milenkovic <miodrag.milenkovic@gmail.com> | 2019-03-01 12:46:35 -0500 |
|---|---|---|
| committer | Miodrag Milenkovic <miodrag.milenkovic@gmail.com> | 2019-03-01 12:47:57 -0500 |
| commit | c1059d6e8bdc6413cc7a05edd1b44205acc3bc15 (patch) | |
| tree | 4813c57b12ec76249707b7ebdcd3d08b82ad3d92 /rust-mode-tests.el | |
| parent | 198c777c2ba58e94a6b035c286c660669a7ce2a9 (diff) | |
| download | rust-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.el | 8 |
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 " |
