[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/buttercup 17f3cf5 062/340: Remove error in favor of failed
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/buttercup 17f3cf5 062/340: Remove error in favor of failed. |
Date: |
Thu, 16 Dec 2021 14:59:05 -0500 (EST) |
branch: elpa/buttercup
commit 17f3cf570cb6a5923afd0a2c56f6d2504b141dea
Author: Jorgen Schaefer <contact@jorgenschaefer.de>
Commit: Jorgen Schaefer <contact@jorgenschaefer.de>
Remove error in favor of failed.
There is no big semantic difference outside of a lacking stack trace,
and a lot more overlap than difference.
---
buttercup-test.el | 2 +-
buttercup.el | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/buttercup-test.el b/buttercup-test.el
index eb24062..9d8bd4d 100644
--- a/buttercup-test.el
+++ b/buttercup-test.el
@@ -604,7 +604,7 @@
res)))
(let ((res (buttercup--funcall (lambda () (/ 1 0)))))
- (when (not (equal res (list 'error
+ (when (not (equal res (list 'failed
'(error (arith-error))
(list '(t / 1 0)))))
(error "Expected erroring buttercup--funcall not to return %S"
diff --git a/buttercup.el b/buttercup.el
index a5c65b8..e82950e 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -227,7 +227,7 @@ MATCHER is either a matcher defined with
after-all
;; These are set if there are errors in after-all.
;; One of: passed failed pending
- status
+ (status 'passed)
failure-description
failure-stack)
@@ -239,7 +239,7 @@ MATCHER is either a matcher defined with
;; The closure to run for this spec
function
;; One of: passed failed pending
- status
+ (status 'passed)
failure-description
failure-stack)
@@ -795,7 +795,7 @@ failed -- The second value is the description of the
expectation
(if (and (eq (elt args 0) 'error)
(eq (car (elt args 1)) 'buttercup-failed))
(list 'failed (cdr (elt args 1)) nil)
- (list 'error args (buttercup--backtrace)))))
+ (list 'failed args (buttercup--backtrace)))))
(defun buttercup--backtrace ()
(let* ((n 0)
- [nongnu] elpa/buttercup 636db47 172/340: Typo fixes (#126), (continued)
- [nongnu] elpa/buttercup 636db47 172/340: Typo fixes (#126), ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 8034597 175/340: Replace remaining calls to obsolete buttercup-*-parents, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup f57036f 180/340: Update the disabled/pending sections of writing-tests.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 406c41d 190/340: Print elapsed time for each spec, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 19f256e 094/340: Update copyright / license information for some details, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 46882f8 131/340: Show a message about duplicate spec names, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 07cf64b 140/340: Run test-buttercup.el before tests in writing-tests.md, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 2edeae5 159/340: Rewrite buttercup-suite-full-name with a single loop, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 4063f55 162/340: Add function buttercup--specs, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup bf0e1da 049/340: Rename tar target to release and add compile and clean targets., ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 17f3cf5 062/340: Remove error in favor of failed.,
ELPA Syncer <=
- [nongnu] elpa/buttercup f3d6709 074/340: Use relative path when testing for dotfiles in current project, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup acccc0f 179/340: Modify xdescribe to keep all contained specs as pending, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d07dbf3 182/340: Merge pull request #129 from snogge/fix-obsolete-aliases, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 079ef3e 186/340: Bump version: 1.12 → 1.13, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 1998ae3 188/340: Drop unused variable in buttercup--disable-specs, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup edcffde 189/340: Add start and end times to each suite or spec, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 075b318 198/340: Add support for :var*, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 1c762a5 200/340: Add documentation for :var and :var*, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup 159fe3c 203/340: Really fix the buttercup-run tests, ELPA Syncer, 2021/12/16
- [nongnu] elpa/buttercup d2b6692 206/340: Bump version: 1.16 → 1.17, ELPA Syncer, 2021/12/16