emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9c362e2 2/2: Add test for Bug#41761


From: Stefan Kangas
Subject: master 9c362e2 2/2: Add test for Bug#41761
Date: Fri, 14 Aug 2020 05:49:25 -0400 (EDT)

branch: master
commit 9c362e293c09d4d09a33f278f806106e8b4621c3
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Add test for Bug#41761
    
    * test/lisp/simple-tests.el (simple-test-count-words-bug-41761):
    New test.
---
 test/lisp/simple-tests.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el
index 4adcacb..63e504b 100644
--- a/test/lisp/simple-tests.el
+++ b/test/lisp/simple-tests.el
@@ -39,6 +39,13 @@
      (with-no-warnings (simple-test--buffer-substrings))))
 
 
+;;; `count-words'
+(ert-deftest simple-test-count-words-bug-41761 ()
+  (with-temp-buffer
+    (dotimes (i 10) (insert (propertize "test " 'field (cons nil nil))))
+    (should (= (count-words (point-min) (point-max)) 10))))
+
+
 ;;; `transpose-sexps'
 (defmacro simple-test--transpositions (&rest body)
   (declare (indent 0)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]