summaryrefslogtreecommitdiff
path: root/tests/org-fc-indexer-test.el
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org-fc-indexer-test.el')
-rw-r--r--tests/org-fc-indexer-test.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/org-fc-indexer-test.el b/tests/org-fc-indexer-test.el
new file mode 100644
index 0000000..2200fa0
--- /dev/null
+++ b/tests/org-fc-indexer-test.el
@@ -0,0 +1,15 @@
+(require 'org-fc)
+(require 'org-fc-test-helper)
+(require 'ert)
+
+(ert-deftest org-fc-test-malformed ()
+ (should (null (org-fc-awk-index-paths
+ (list (org-fc-test-fixture "malformed/no_review_data.org")))))
+ (should (null (org-fc-awk-index-paths
+ (list (org-fc-test-fixture "malformed/no_properties.org")))))
+ (should (null (org-fc-awk-index-paths
+ (list (org-fc-test-fixture "malformed/normal_swapped_drawers.org")))))
+ (should (null (org-fc-awk-index-paths
+ (list (org-fc-test-fixture "malformed/unclosed_drawer1.org")))))
+ (should (null (org-fc-awk-index-paths
+ (list (org-fc-test-fixture "malformed/unclosed_drawer2.org"))))))