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

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

[elpa] externals/csharp-mode 4cd07f9 178/459: Clean up fontification tes


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 4cd07f9 178/459: Clean up fontification test.
Date: Sun, 22 Aug 2021 13:59:22 -0400 (EDT)

branch: externals/csharp-mode
commit 4cd07f9ad612c464c051248ec0ebf389e5e122ef
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    Clean up fontification test.
---
 csharp-mode-tests.el | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 7b9fb52..8738962 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -78,17 +78,9 @@
   ;; this replaces the manual test of
   ;; test-files/fontification-test-compiler-directives-with-comments.cs, but 
file
   ;; has been kept around to assist manual testing/verification.
-  (let* ((test-string "#region case 1\n\n//this is a comment\n#region case2"))
-    (should (assess-face-at=
-             test-string
-             'csharp-mode
-             ;; should not be interpreted as string because of trailing \!
-             "case1" 'font-lock-comment-face))
-    (should (assess-face-at=
-             test-string
-             'csharp-mode
-             ;; should not be interpreted as string because of trailing \!
-             "case2" 'font-lock-comment-face))))
+  (assess-face-in-file= 
"./test-files/fontification-test-compiler-directives-with-comments.cs"
+                        "case1" 'font-lock-comment-face
+                        "case2" 'font-lock-comment-face))
 
 (defun list-repeat-once (mylist)
   (append mylist mylist))



reply via email to

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