Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move the (unimpressive) tests to a separate file
- Loading branch information
1 parent
3438a2c
commit 6499810
Showing
2 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
;;; tests for wikidoc -*- lexical-binding: t -*- | ||
|
||
(require 'ert) | ||
(require 'wikidoc) | ||
|
||
(ert-deftest wikidoc-test-convert-line () | ||
"Can we convert lines with lisp refs and arguments?" | ||
(let ((l '("This is a line of documentation with `lisp-references'" . | ||
"This is a line of documentation with [[lisp-references]]"))) | ||
(should | ||
(equal | ||
(cdr l) | ||
(wikidoc--convert-line (car l))))) | ||
(let ((l | ||
'("A line of doc with 2 args of car and cdr: CAR and CDR" . | ||
"A line of doc with 2 args of car and cdr: //car// and //cdr//"))) | ||
(should | ||
(equal | ||
(cdr l) | ||
(wikidoc--convert-line (car l) '(car cdr)))))) | ||
|
||
|
||
;;; tests.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters