[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 5e7af4355b 04/16: Tests: Fix pcase/map bindings
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 5e7af4355b 04/16: Tests: Fix pcase/map bindings on Emacs 27 |
Date: |
Thu, 28 Sep 2023 19:00:44 -0400 (EDT) |
branch: elpa/hyperdrive
commit 5e7af4355b6bfd4958afe61ae42f9017692693b3
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Tests: Fix pcase/map bindings on Emacs 27
---
tests/test-hyperdrive-org.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/test-hyperdrive-org.el b/tests/test-hyperdrive-org.el
index 9939b4f6cb..f386b506b8 100644
--- a/tests/test-hyperdrive-org.el
+++ b/tests/test-hyperdrive-org.el
@@ -102,7 +102,7 @@ Point is indicated by ★."
(let ((test-name (intern
(format "hyperdrive-test-org-store-link/%s" scenario))))
`(ert-deftest ,test-name ()
- (pcase-let* (((map :public-key :path :content
+ (pcase-let* (((map (:public-key public-key) (:path path) (:content
content)
(:url expected-url) (:desc expected-desc))
;; TODO: Is there a better syntax that explicit `quote'?
(alist-get (quote ,scenario)
@@ -128,7 +128,8 @@ Point is indicated by ★."
(cl-defun hyperdrive-test-org-insert-link-string (scenario &key public-key
path)
"Return link for SCENARIO inserted into entry with PUBLIC-KEY and PATH."
(declare (indent defun))
- (pcase-let (((map :url :desc) (alist-get scenario
hyperdrive-test-org-store-link-scenarios)))
+ (pcase-let (((map (:url url) (:desc desc))
+ (alist-get scenario hyperdrive-test-org-store-link-scenarios)))
(with-temp-buffer
;; TODO: Initialize this buffer only once for this file's tests.
(org-mode)
- [nongnu] elpa/hyperdrive 01594b0232 07/16: Tests: Fix on Emacs <28, (continued)
- [nongnu] elpa/hyperdrive 01594b0232 07/16: Tests: Fix on Emacs <28, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 638fb8b2ae 10/16: Docs: Link to NonGNU ELPA hyperdrive page, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive cccc75c250 11/16: Docs: Suggest package-refresh-contents before installation, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive b2f47f3f67 14/16: Comment: Remove TODO, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 5d710bedb7 02/16: Tidy: Compiler warning, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 677ccc02f1 08/16: Tests: Fix test on older Orgs, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 1951b1a356 12/16: Docs: Document MELPA installation instructions, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 8613211d69 03/16: Tidy: Compilation warning, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 94f74764a6 05/16: Tidy: Imenu compiler warning, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive e54c8c9fec 09/16: Meta: Display all build manifest badges, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 5e7af4355b 04/16: Tests: Fix pcase/map bindings on Emacs 27,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 2db41e3d24 15/16: Change: (hyperdrive-fill-version-ranges-limit) Increase limit to 100, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 074dc81702 16/16: Meta: Fix NonGNU ELPA conflict, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 1e3d96bdb8 01/16: Meta: Add build status badge for Emacs 29.1, ELPA Syncer, 2023/09/28
- [nongnu] elpa/hyperdrive 56a2ee1219 13/16: Docs: Rename Copying section to Freedom to copy, ELPA Syncer, 2023/09/28