[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/el-mock 6f3da38bd3 45/64: Add a test for evaluating arg
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/el-mock 6f3da38bd3 45/64: Add a test for evaluating arguments |
Date: |
Mon, 28 Aug 2023 23:01:41 -0400 (EDT) |
branch: scratch/el-mock
commit 6f3da38bd30b654cdd0bcbb2e98a93144ccee3c3
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>
Add a test for evaluating arguments
---
test/el-mock-test.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/test/el-mock-test.el b/test/el-mock-test.el
index f71fa54d60..16886b1eec 100644
--- a/test/el-mock-test.el
+++ b/test/el-mock-test.el
@@ -17,6 +17,8 @@
(declare-function blah "el-mock-test")
(declare-function fugaga "el-mock-test")
+(defvar el-mock-test-var)
+
(expectations
(desc "stub setup/teardown")
(expect 2
@@ -104,6 +106,13 @@
(with-mock
(mock (me 1) => (+ 3 31))
(me 1)))
+ (expect nil
+ (let ((el-mock-test-var 11))
+ (with-mock
+ (setq el-mock-test-var 22)
+ (mock (me el-mock-test-var)) ; not yet evaluated
+ (setq el-mock-test-var 33)
+ (me 33))))
(desc "unfulfilled mock")
(expect (error mock-error '((foom 5) (foom 6)))
- [nongnu] scratch/el-mock 68992d4361 35/64: Merge pull request #16 from phst/cl-lib, (continued)
- [nongnu] scratch/el-mock 68992d4361 35/64: Merge pull request #16 from phst/cl-lib, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock e3cff9f127 32/64: Merge pull request #13 from phst/fix-tests, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 136e0550e5 34/64: Migrate from obsolete cl.el to cl-lib, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 9e4d092179 38/64: Merge pull request #19 from ardumont/master, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 84a743cfcb 40/64: Fix all compilation warnings, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock b3accacee4 42/64: el-mock doesn’t need cl.el any more, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 6443c2aef4 46/64: Also run tests under Emacs 25.2, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 40a4e003e1 48/64: Add Github Actions, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 88038b382c 56/64: fix 80 character width warning seen here:, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock e65ec012a7 44/64: Document that and when arguments and return values are evaluated, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 6f3da38bd3 45/64: Add a test for evaluating arguments,
Stefan Monnier <=
- [nongnu] scratch/el-mock 2b4e3acc43 50/64: Merge pull request #29 from telotortium/github-actions, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock c05cc24df6 53/64: Merge pull request #30 from telotortium/fix-backtrace, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 21157530ca 59/64: Misc cosmetic changes, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 5b0afab8e9 60/64: * test/test-helper.el: Mark as not compiled, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 5fb2867d2e 36/64: Merge pull request #15 from gabrielmdeal/master, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 5084045989 37/64: Fix incf function symbol to cl-incf, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 9ddda16de4 39/64: Switch all Elisp files to lexical binding, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock e301749423 41/64: Merge pull request #21 from phst/compile-error, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 06fc9c4cac 43/64: Specify language of code blocks explicitly, Stefan Monnier, 2023/08/28
- [nongnu] scratch/el-mock 5df1d3a956 47/64: Merge pull request #12 from AdrieanKhisbe/improved-ci, Stefan Monnier, 2023/08/28