branch: elpa/buttercup commit 3ef90b4e818a49ffbeecc313a8711fbacce954dc Author: Jorgen Schaefer <cont...@jorgenschaefer.de> Commit: Jorgen Schaefer <cont...@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