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

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

[nongnu] elpa/buttercup 3ef90b4 100/340: :to-match: Don't switch t/nil!


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 3ef90b4 100/340: :to-match: Don't switch t/nil!
Date: Thu, 16 Dec 2021 14:59:12 -0500 (EST)

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

    :to-match: Don't switch t/nil!
---
 buttercup.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/buttercup.el b/buttercup.el
index 4dbcc31..bf79357 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 nil (format "Expected %S not to match the regexp %S"
-                        text regexp))
-    (cons t (format "Expected %S to match the regexp %S"
-                    text regexp))))
+      (cons t (format "Expected %S not to match the regexp %S"
+                      text regexp))
+    (cons nil (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]