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

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

[elpa] externals/csharp-mode ed030e7 152/459: Ensure test-cases don't ov


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode ed030e7 152/459: Ensure test-cases don't overlap.
Date: Sun, 22 Aug 2021 13:59:16 -0400 (EDT)

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

    Ensure test-cases don't overlap.
    
    These particular test cases overlapped and risked causing false
    positives and/or negatives.
---
 csharp-mode-tests.el             | 2 +-
 test-files/imenu-comment-test.cs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 8614bdc..218a031 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -201,7 +201,7 @@
          (imenu-items    (mapconcat 'car class-entries " ")))
     (should (string-match-p "HasNoComment" imenu-items))
     (should (string-match-p "HasComment" imenu-items))
-    (should (string-match-p "HasCommentToo" imenu-items))))
+    (should (string-match-p "CommentedToo" imenu-items))))
 
 (def-imenutest imenu-parsing-supports-explicit-interface-properties
   "./test-files/imenu-interface-property-test.cs" imenu-index
diff --git a/test-files/imenu-comment-test.cs b/test-files/imenu-comment-test.cs
index a7a959672..28f72b2 100644
--- a/test-files/imenu-comment-test.cs
+++ b/test-files/imenu-comment-test.cs
@@ -10,7 +10,7 @@ public class MyClass
     {
     }
 
-    public void HasCommentToo() /* test yes */
+    public void CommentedToo() /* test yes */
     {
     }
 }



reply via email to

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