summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2023-04-15 13:37:48 +0100
committerArun Isaac2023-04-15 13:37:48 +0100
commit1da3680f56890f8adc2d512884526cc8d3f9bdb6 (patch)
tree40e6f5b9c46e51d1ffef4f3ba06e51d404cbb9d6
parent4007e8daca4d960c91ba38d5ee4778dbab5b0020 (diff)
downloadtissue-1da3680f56890f8adc2d512884526cc8d3f9bdb6.tar.gz
tissue-1da3680f56890f8adc2d512884526cc8d3f9bdb6.tar.lz
tissue-1da3680f56890f8adc2d512884526cc8d3f9bdb6.zip
tests: Add test for checkbox parsing.
* tests/issue.scm ("Parse checkboxes"): New test.
-rw-r--r--tests/issue.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/issue.scm b/tests/issue.scm
index db2595f..22a04aa 100644
--- a/tests/issue.scm
+++ b/tests/issue.scm
@@ -86,4 +86,11 @@ strings."
(call-with-input-string "* keywords: this is a long keyword"
(compose hashtable->alist file-details)))
+(test-equal "Parse checkboxes"
+ '((completed-tasks . 1)
+ (tasks . 2))
+ (call-with-input-string "* [ ] foo
+* [x] bar"
+ (compose hashtable->alist file-details)))
+
(test-end "issue")