summaryrefslogtreecommitdiff
path: root/tests/org-fc-test-helper.el
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org-fc-test-helper.el')
-rw-r--r--tests/org-fc-test-helper.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/org-fc-test-helper.el b/tests/org-fc-test-helper.el
new file mode 100644
index 0000000..ea94198
--- /dev/null
+++ b/tests/org-fc-test-helper.el
@@ -0,0 +1,13 @@
+(defun org-fc-test-fixture (name)
+ "Return the full path of fixture file NAME."
+ (expand-file-name
+ name
+ (expand-file-name "tests/" org-fc-source-path)))
+
+(defun org-fc-test-index-ids (index)
+ "Return a list of IDs in INDEX."
+ (mapcar
+ (lambda (card) (plist-get card :id))
+ index))
+
+(provide 'org-fc-test-helper)