[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 82305e861b 15/82: WIP: Have macro define narrow
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 82305e861b 15/82: WIP: Have macro define narrower tests |
Date: |
Mon, 25 Sep 2023 19:00:50 -0400 (EDT) |
branch: elpa/hyperdrive
commit 82305e861b7d130124d14f3d35025efe7d56ba1d
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
WIP: Have macro define narrower tests
---
tests/test-hyperdrive-org-link.el | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/tests/test-hyperdrive-org-link.el
b/tests/test-hyperdrive-org-link.el
index c12fe2218c..2353e69a12 100644
--- a/tests/test-hyperdrive-org-link.el
+++ b/tests/test-hyperdrive-org-link.el
@@ -99,17 +99,20 @@
;; [":insert-into" sexp]
;; [":results" sexp]]))
)
- (let ((test-name (intern (concat "hyperdrive-test-org-link/" (symbol-name
name))))
- body-forms)
+ (let (body-forms)
(pcase-dolist ((map (:let vars) (:result result)) results)
- (push `(let (,@vars)
- (should (equal ,result
- (hyperdrive-test-org-link-roundtrip ,store-body
- :store-from ,store-from :insert-into
,insert-into))))
- body-forms))
- `(ert-deftest ,test-name ()
- "Docstring."
- ,@(nreverse body-forms))))
+ (let* ((olfpt (cadadr (assoc 'org-link-file-path-type vars)))
+ (holfu (cadr (assoc 'hyperdrive-org-link-full-url vars)))
+ (test-name (intern (format "hyperdrive-test-org-link/%s/%s-%s"
+ name olfpt holfu))))
+ (push `(ert-deftest ,test-name ()
+ "Docstring."
+ (let (,@vars)
+ (should (equal ,result
+ (hyperdrive-test-org-link-roundtrip
,store-body
+ :store-from ,store-from :insert-into
,insert-into)))))
+ body-forms)))
+ `(progn ,@(nreverse body-forms))))
(hyperdrive-test-org-link-deftest same-drive-same-file-before-heading
:store-body "<|>
- [nongnu] elpa/hyperdrive 7d06ffd037 80/82: Meta: Update .gitignore, (continued)
- [nongnu] elpa/hyperdrive 7d06ffd037 80/82: Meta: Update .gitignore, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 7826c10faa 81/82: Merge branch 'wip/org-heading-links', ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 903847d50e 82/82: Tidy: Docstrings, comments, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 670ae8050f 03/82: WIP: Add link tests, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 9b3b215444 04/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 62c487448f 06/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 28d4b1a6d6 08/82: Add: (hyperdrive-equal-p, -entry-hyperdrive-equal-p), ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive bdf9a94b49 09/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 96d458868b 10/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 8a453f0eb4 14/82: WIP: All tests passing! (so far), ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 82305e861b 15/82: WIP: Have macro define narrower tests,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive a72cf3820d 17/82: WIP: All tests pass, etc., ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive a040fa2686 18/82: WIP, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 5726648878 21/82: Change: (hyperdrive--format-entry-url) Docstring, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 7d3662f842 25/82: Comment: Add TODO, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 016582b1a2 26/82: Tidy: (--org-insert-link-after-advice) Bind search-option at top, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 96129bb5db 27/82: Tidy: Whitespace, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 80ec05b3b5 28/82: Add: (--org-normalize-link) Gut --org-insert-link-after-advice, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 89fa2fe4a9 30/82: Tidy: (hyperdrive--org-normalize-link) Deduplicate full URL codepath, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive a4b2c538df 31/82: Tidy: (hyperdrive--org-normalize-link) Use if instead of cond, ELPA Syncer, 2023/09/25
- [nongnu] elpa/hyperdrive 36a18f326e 34/82: Change: (--org-normalize-link) Return early with search option, ELPA Syncer, 2023/09/25