summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-04-18web: server: Handle files without extension.Arun Isaac
* tissue/web/server.scm (mime-type-for-extension): Handle files without extension. * tests/web/server.scm: New file.
2023-04-15issue: Ignore preformatted blocks.Arun Isaac
* tissue/issue.scm (file-details): Ignore preformatted blocks. * tests/issue.scm ("Ignore preformatted block"): New test. * issues/ignore-preformatted-blocks-in-gemtext-parser.gmi: Close issue.
2023-04-15issue: Allow checkboxes without a space.Arun Isaac
* tissue/issue.scm (file-details): Allow checkboxes without a space. * tests/issue.scm ("Allow checkboxes without a space"): New test. * issues/allow-checkboxes-without-a-space.gmi: Close issue.
2023-04-15tests: Add test for checkbox parsing.Arun Isaac
* tests/issue.scm ("Parse checkboxes"): New test.
2023-04-15tests: Sort alist entries after converting hashtable.Arun Isaac
The order of entries in an association list is insignificant. Sorting association list entries prevents tests from breaking simply because the order of the entries is different. * tests/issue.scm: Import (ice-9 match). (hashtable->alist): Sort alist entries after converting hashtable. Document this in the docstring.
2023-01-26git: Infer changes by root commit correctly.Arun Isaac
* tissue/git.scm (commit-deltas): Rename to ... (commit-file-changes): ... this. Return list of pairs mapping old files to new files. (file-modification-table): Use commit-file-changes instead of commit-deltas. Adapt to new return value. * tests/git.scm: New file. * .dir-locals.el (scheme-mode): Set scheme-indent-function for with-variable and with-variables.
2023-01-23tests: Remove tests for pairify.Arun Isaac
pairify was deprecated. * tests/tissue.scm (pairify): Delete variable. ("pairify"): Delete test.
2022-07-09tissue: Delay index-documents field.Arun Isaac
* tissue/tissue.scm: Import (ice-9 match). (<tissue-configuration>)[indexed-documents]: Rename getter to delayed-tissue-configuration-indexed-documents. (tissue-configuration-indexed-documents): New function. (pairify): New function. (tissue-configuration): Delay #:indexed-documents argument too. * tests/tissue.scm: New file.
2022-07-07issue: Parse known keys in list lines even if they are long.Arun Isaac
We drop the restriction that values in key-value pairs should be 2 words or less. Instead, if the key is a known key such as "keywords:", "tags:" or "status:", we always accept it as a key. * tissue/issue.scm (file-details): Parse known keys in list lines even if they are long. * tests/issue.scm ("Parse keywords even if they are long"): New test.
2022-07-07tests: Add tests.Arun Isaac
* Makefile (GUILE, tests): New variables. (check): Run tests. * tests/issue.scm: New file.