[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup 8595bd91ee 4/9: Move quotes into the format hand
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup 8595bd91ee 4/9: Move quotes into the format handlers in buttercup--handle-to-throw |
Date: |
Wed, 21 Feb 2024 18:59:25 -0500 (EST) |
branch: elpa/buttercup
commit 8595bd91ee333f8f6bf2008521184eb4c9552ab6
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
Move quotes into the format handlers in buttercup--handle-to-throw
---
buttercup.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/buttercup.el b/buttercup.el
index d6bf927508..891f59b028 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -679,10 +679,10 @@ UNEVALUATED-EXPR if it did not raise any signal."
;; buttercup--simple-format for formatting as format-spec
;; does not support functions until Emacs 29
(spec (format-spec-make
- ?E (format "%S" unevaluated-expr)
- ?e (lambda () (format "%S" expr-value))
+ ?E (format "`%S'" unevaluated-expr)
+ ?e (lambda () (format "`%S'" expr-value))
?t (lambda () (format "%S" thrown-signal))
- ?S (lambda () (format "%S" thrown-signal-symbol))
+ ?S (lambda () (format "`%S'" thrown-signal-symbol))
?A (lambda ()
(if expected-signal-args
(format " with args `%S'" thrown-signal-args)
@@ -698,22 +698,22 @@ UNEVALUATED-EXPR if it did not raise any signal."
(cond
(matched ;; should be the most likely result
`(t . ,(buttercup--simple-format
- spec "Expected `%E' not to throw %s%a, but it threw `%S'%A")))
+ spec "Expected %E not to throw %s%a, but it threw %S%A")))
((null thrown-signal) ; no signal raised
`(nil . ,(buttercup--simple-format
- spec "Expected `%E' to throw %s%a, but instead it returned
`%e'")))
+ spec "Expected %E to throw %s%a, but instead it returned
%e")))
((and explained-signal-args (not matching-signal-symbol)) ; neither
symbol nor args matched
`(nil . ,(buttercup--simple-format
spec
- "Expected `%E' to throw %s%a, but instead it threw `%S'%A")))
+ "Expected %E to throw %s%a, but instead it threw %S%A")))
(explained-signal-args ; symbol matched
`(nil . ,(buttercup--simple-format
spec
- "Expected `%E' to signal %s%a, but instead signalled%A which
does not match because %q.")))
+ "Expected %E to signal %s%a, but instead signalled%A which
does not match because %q.")))
((not matching-signal-symbol) ; args matched
`(nil . ,(buttercup--simple-format
spec
- "Expected `%E' to throw %s%a, but instead it threw `%S'%A")))
+ "Expected %E to throw %s%a, but instead it threw %S%A")))
(t (error "`buttercup--handle-to-throw' could not handle args %S %S"
thrown-signal expected-signal))))))
- [nongnu] elpa/buttercup updated (24d43b2ce2 -> f2f7f81a83), ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup 25924eb0a3 5/9: Merge branch 'improved-throw-messages', ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup 21c2260c8f 7/9: test: Correct wording of some matcher tests, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup f2f7f81a83 9/9: Improve fail message for the :to-have-been-called-times matcher, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup 26c090b7ff 2/9: Separate the :to-throw failure types to enable better messages, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup f967fdfc1f 1/9: Use the ert-explainer to check signal args equality in :to-throw, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup c32a74bc28 3/9: Use the explained diffence for the diffing args case, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup 8595bd91ee 4/9: Move quotes into the format handlers in buttercup--handle-to-throw,
ELPA Syncer <=
- [nongnu] elpa/buttercup 48a81c6bda 6/9: Add docstrings for the spy matchers, ELPA Syncer, 2024/02/21
- [nongnu] elpa/buttercup b18ab7fe22 8/9: test: Verify multiple argument matching for :have-been-called-with, ELPA Syncer, 2024/02/21