From 1da3680f56890f8adc2d512884526cc8d3f9bdb6 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 15 Apr 2023 13:37:48 +0100 Subject: tests: Add test for checkbox parsing. * tests/issue.scm ("Parse checkboxes"): New test. --- tests/issue.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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") -- cgit v1.2.3