From 5992502ca42263855e327239eeb7f51b59a2703d Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Sun, 11 Aug 2019 10:19:51 +0200 Subject: [PATCH] add a test about buffer manipulation --- test/src/comp-tests.el | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ;; ;;;;;;;;;;;;;;;;;;;; -- 2.39.5