[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/assess 3f89d8601f 15/95: Port tests to sisyphus with-te
From: |
ELPA Syncer |
Subject: |
[elpa] externals/assess 3f89d8601f 15/95: Port tests to sisyphus with-temp-buffers. |
Date: |
Tue, 19 Jul 2022 15:57:29 -0400 (EDT) |
branch: externals/assess
commit 3f89d8601f3883689d34d94e118db16182c80b04
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
Port tests to sisyphus with-temp-buffers.
---
test/sisyphus-test.el | 53 +++++++++++++++++++++------------------------------
1 file changed, 22 insertions(+), 31 deletions(-)
diff --git a/test/sisyphus-test.el b/test/sisyphus-test.el
index 74dd11a69c..a0edcc5574 100644
--- a/test/sisyphus-test.el
+++ b/test/sisyphus-test.el
@@ -98,39 +98,30 @@ This also tests the advice on string=."
"hello")))))))
(ert-deftest buffer= ()
- (let (a)
- (with-temp-buffer
- (setq a (current-buffer))
- (insert "hello")
- (with-temp-buffer
- (insert "hello")
+ (sisyphus-with-temp-buffers
+ ((a
+ (insert "hello"))
+ (b
+ (insert "hello")))
+ (should
+ (sisyphus-buffer= a b)))
+ (sisyphus-with-temp-buffers
+ ((a
+ (insert "hello"))
+ (b
+ (insert "goodbye")))
+ (should-not
+ (sisyphus-buffer=
+ a b)))
+ (should
+ (sisyphus-with-temp-buffers
+ ((a (insert "hello"))
+ (b (insert "goodbye")))
+ (sisyphus-test--explanation
+ (lambda ()
(should
(sisyphus-buffer=
- (current-buffer)
- a)))))
- (let (a)
- (with-temp-buffer
- (setq a (current-buffer))
- (insert "hello")
- (with-temp-buffer
- (insert "goodbye")
- (should-not
- (sisyphus-buffer=
- (current-buffer)
- a)))))
- (should
- (let (a b)
- (with-temp-buffer
- (setq a (current-buffer))
- (insert "hello")
- (with-temp-buffer
- (setq b (current-buffer))
- (insert "goodbye")
- (sisyphus-test--explanation
- (lambda ()
- (should
- (sisyphus-buffer=
- a b)))))))))
+ a b)))))))
(defvar sisyphus-test-hello.txt
(relative-expand-file-name "../dev-resources/hello.txt"))
- [elpa] externals/assess c6e666413a 21/95: Merge branch 'master' of github.com:phillord/sisyphus, (continued)
- [elpa] externals/assess c6e666413a 21/95: Merge branch 'master' of github.com:phillord/sisyphus, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 83973f4047 23/95: Add dash as a dependency., ELPA Syncer, 2022/07/19
- [elpa] externals/assess f33b371177 25/95: Specify minimum dash version, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 3e74c4b70d 30/95: Add test for string font-lock comparison., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 6a4aa34ec3 33/95: Fixed multiple string matching for face match., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 5dde98a124 31/95: Merge branch 'master' of github.com:phillord/sisyphus, ELPA Syncer, 2022/07/19
- [elpa] externals/assess 0eb198f05e 40/95: Documentation Fix., ELPA Syncer, 2022/07/19
- [elpa] externals/assess c0bdc94e49 41/95: Remove erroneous debug statement., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 2db9834e4e 44/95: Rework Makefile for update to cask, ELPA Syncer, 2022/07/19
- [elpa] externals/assess e820ccf163 05/95: Emacs 24.4 or later., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 3f89d8601f 15/95: Port tests to sisyphus with-temp-buffers.,
ELPA Syncer <=
- [elpa] externals/assess acb460e26c 16/95: All git-snapshot., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 2e42c93191 06/95: Remove debug statement., ELPA Syncer, 2022/07/19
- [elpa] externals/assess eb56d9627d 07/95: String diff file save is now silent., ELPA Syncer, 2022/07/19
- [elpa] externals/assess a459abe966 11/95: New macro `sisyphus-with-preserved-buffer-list'., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 33b6c3c390 12/95: New macro `sisyphus-with-temp-buffers'., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 890906bfcb 17/95: Interface written as single overloaded function., ELPA Syncer, 2022/07/19
- [elpa] externals/assess f3416dadb1 18/95: Indentation test functions., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 1b01542ccd 20/95: Fontification testing., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 2e556a62ae 22/95: Add new test file., ELPA Syncer, 2022/07/19
- [elpa] externals/assess 32a00524a8 24/95: Fix unused variable issues, ELPA Syncer, 2022/07/19