]> git.eshelyaron.com Git - emacs.git/commitdiff
Turn mistaken functions into tests (bug#51941)
authorMattias Engdegård <mattiase@acm.org>
Thu, 18 Nov 2021 19:14:02 +0000 (20:14 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 18 Nov 2021 19:54:33 +0000 (20:54 +0100)
* test/lisp/calendar/icalendar-tests.el
(icalendar-tests--decode-isodatetime):
* test/src/eval-tests.el
(eval-tests-19790-backquote-comma-dot-substitution):
Change `defun` into `ert-deftest` where this seems to have been the
original intention.

test/lisp/calendar/icalendar-tests.el
test/src/eval-tests.el

index 9e8a8e7b47946cc3564c34d48886ee7f2d2a3d66..10b684aacbebd98365aad2d857ff18379c744f99 100644 (file)
@@ -1633,7 +1633,7 @@ SUMMARY:NNN Wwwwwwww Wwwww - Aaaaaa Pppppppp rrrrrr ddd oo Nnnnnnnn 30
   (let ((time (icalendar--decode-isodatetime string day zone)))
     (format-time-string "%FT%T%z" (encode-time time) 0)))
 
-(defun icalendar-tests--decode-isodatetime (_ical-string)
+(ert-deftest icalendar-tests--decode-isodatetime ()
   "Test `icalendar--decode-isodatetime'."
   (should (equal (icalendar-test--format "20040917T050910-0200")
                  "2004-09-17T03:09:10+0000"))
index 3c3e7033419c8d979c829675a8ae268e32904819..4f05d99136b920c2f0a08f0f5156678c22411933 100644 (file)
@@ -179,7 +179,7 @@ are found on the stack and therefore not garbage collected."
   "Remove the Lisp reference to the byte-compiled object."
   (setf (symbol-function #'eval-tests-33014-func) nil))
 
-(defun eval-tests-19790-backquote-comma-dot-substitution ()
+(ert-deftest eval-tests-19790-backquote-comma-dot-substitution ()
   "Regression test for Bug#19790.
 Don't handle destructive splicing in backquote expressions (like
 in Common Lisp).  Instead, make sure substitution in backquote