]> git.eshelyaron.com Git - emacs.git/commitdiff
add a test about buffer manipulation
authorAndrea Corallo <andrea_corallo@yahoo.it>
Sun, 11 Aug 2019 08:19:51 +0000 (10:19 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:33:58 +0000 (11:33 +0100)
test/src/comp-tests.el

index e959e2652283fbdf94b26019e5aa26c1fecc8186..1f15a0bd8bd7b14a1a7b8bd6d39f4d3a03f15174 100644 (file)
 
   (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 ;;
 ;;;;;;;;;;;;;;;;;;;;