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