Skip to content

Commit

Permalink
Various tweaks
Browse files Browse the repository at this point in the history
- Tweaked to evaluate expected results to avoid problems with fset and readtables; #{||} cannot be used, and (fset:empty-map) neither
- Improved working with multiple values
- Added a test-package function to test all functions in a package
- Only print when tests are failing (useful when testing entire packages)
- RUN-DOCTESTS doesn't throw on empty docstring (triggered eof error)
  • Loading branch information
simendsjo committed Mar 1, 2024
1 parent f4b7f4c commit 039516e
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 228 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
*.FASL
*.fasl
*.lisp-temp
*.dfsl
*.pfsl
*.d64fsl
*.p64fsl
*.lx64fsl
*.lx32fsl
*.dx64fsl
*.dx32fsl
*.fx64fsl
*.fx32fsl
*.sx64fsl
*.sx32fsl
*.wx64fsl
*.wx32fsl
118 changes: 0 additions & 118 deletions README

This file was deleted.

23 changes: 23 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Doctests for Lisp

Clone repository
#+begin_src bash
git clone git@github.com:simendsjo/sijo-doctest.git ~/quicklisp/local-projects/sijo-doctest
#+end_src

Load library
#+begin_src lisp
(ql:quickload :sijo-doctest)
#+end_src

Test your package
#+begin_src lisp
(sijo-doctest:test-package :your-own-package)
#+end_src

This fork has some minor differences to the upstream version:
- Tweaked to evaluate expected results to avoid problems with fset and readtables; #{||} cannot be used, and (fset:empty-map) neither
- Improved working with multiple values
- Added a test-package function to test all functions in a package
- Only print when tests are failing (useful when testing entire packages)
- RUN-DOCTESTS doesn't throw on empty docstring (triggered eof error)
10 changes: 0 additions & 10 deletions doctest.asd

This file was deleted.

Loading

0 comments on commit 039516e

Please sign in to comment.