aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog1
-rw-r--r--test/automated/generator-tests.el9
2 files changed, 10 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 55f8c6c8eb8..4488aab701f 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -3,6 +3,7 @@
3 * automated/generator-tests.el (cps-testcase): Use 3 * automated/generator-tests.el (cps-testcase): Use
4 `cps-inhibit-atomic-optimization' instead of 4 `cps-inhibit-atomic-optimization' instead of
5 `cps-disable-atomic-optimization'. 5 `cps-disable-atomic-optimization'.
6 (cps-test-declarations-preserved): New test.
6 7
7 * automated/finalizer-tests.el (finalizer-basic) 8 * automated/finalizer-tests.el (finalizer-basic)
8 (finalizer-circular-reference, finalizer-cross-reference) 9 (finalizer-circular-reference, finalizer-cross-reference)
diff --git a/test/automated/generator-tests.el b/test/automated/generator-tests.el
index 3ee65105597..d9c81b59a23 100644
--- a/test/automated/generator-tests.el
+++ b/test/automated/generator-tests.el
@@ -287,3 +287,12 @@ identical output.
287 (should (equal (iter-next iter) 1)) 287 (should (equal (iter-next iter) 1))
288 (should-error (iter-next iter)) 288 (should-error (iter-next iter))
289 (should (equal nr-unwound 1)))) 289 (should (equal nr-unwound 1))))
290
291(iter-defun generator-with-docstring ()
292 "Documentation!"
293 (declare (indent 5))
294 nil)
295
296(ert-deftest cps-test-declarations-preserved ()
297 (should (equal (documentation 'generator-with-docstring) "Documentation!"))
298 (should (equal (get 'generator-with-docstring 'lisp-indent-function) 5)))