From: Andrea Corallo Date: Sun, 11 Aug 2019 08:19:51 +0000 (+0200) Subject: add a test about buffer manipulation X-Git-Tag: emacs-28.0.90~2727^2~1299 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5992502ca42263855e327239eeb7f51b59a2703d;p=emacs.git add a test about buffer manipulation --- diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index e959e265228..1f15a0bd8bd 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el @@ -453,6 +453,14 @@ (should (= (comp-test-apply #'comp-tests-cons-cdr-f 3) 3))) +(ert-deftest comp-tests-buffer () + (defun comp-tests-buff0-f () + (with-temp-buffer + (insert "foo") + (buffer-string))) + + (should (string= (comp-test-apply #'comp-tests-buff0-f) "foo"))) + ;;;;;;;;;;;;;;;;;;;; ;; Tromey's tests ;; ;;;;;;;;;;;;;;;;;;;;