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

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

[nongnu] elpa/buttercup 23472e9 099/340: :to-match: Show correct error m


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 23472e9 099/340: :to-match: Show correct error messages
Date: Thu, 16 Dec 2021 14:59:12 -0500 (EST)

branch: elpa/buttercup
commit 23472e901c79c8a2bc336e9f5328d352ac5664ff
Author: Jorgen Schaefer <contact@jorgenschaefer.de>
Commit: Jorgen Schaefer <contact@jorgenschaefer.de>

    :to-match: Show correct error messages
    
    They were switched around.
    
    Fixes #51
---
 buttercup.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/buttercup.el b/buttercup.el
index c8b4400..4dbcc31 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -163,10 +163,10 @@ MATCHER is either a matcher defined with
 
 (buttercup-define-matcher :to-match (text regexp)
   (if (string-match regexp text)
-      (cons t (format "Expected %S to match the regexp %S"
-                      text regexp))
-    (cons nil (format "Expected %S not to match the regexp %S"
-                      text regexp))))
+      (cons nil (format "Expected %S not to match the regexp %S"
+                        text regexp))
+    (cons t (format "Expected %S to match the regexp %S"
+                    text regexp))))
 
 (buttercup-define-matcher :to-be-truthy (arg)
   (if arg



reply via email to

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