[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim c246669d04 2/2: * tests/pyim-tests.el (pyim-tests-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim c246669d04 2/2: * tests/pyim-tests.el (pyim-tests-pyim-candidates-search-buffer): Update. |
Date: |
Sun, 22 May 2022 05:57:58 -0400 (EDT) |
branch: externals/pyim
commit c246669d043635f3055f2b2a6a176a01a2449705
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* tests/pyim-tests.el (pyim-tests-pyim-candidates-search-buffer): Update.
---
tests/pyim-tests.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index fcfc1a75dc..a689af0726 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -397,7 +397,9 @@
(with-temp-buffer
(insert "你好你好你坏你坏你话牛蛤牛和牛蛤牛蛤牛蛤牛蛤牛蛤")
(should (equal (pyim-candidates-search-buffer (pyim-cregexp-build "nh" 3
t))
- '("牛蛤" "你坏" "你好" "牛和" "你话")))))
+ '("牛蛤" "你坏" "你好" "牛和" "你话")))
+ (let ((words (pyim-candidates-search-buffer (pyim-cregexp-build "nh" 3
t))))
+ (equal (get-text-property 0 :comment (car words)) "(Buf)"))))
(ert-deftest pyim-tests-pyim-candidates-cloud-search ()
(let ((pyim-candidates-cloud-search-function