emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/pyim 2aa48479b4 14/41: pyim-candidates-create-get-pymap


From: ELPA Syncer
Subject: [elpa] externals/pyim 2aa48479b4 14/41: pyim-candidates-create-get-pymap-chars -> pyim-candidates-pymap-chars
Date: Sat, 4 Jun 2022 09:57:46 -0400 (EDT)

branch: externals/pyim
commit 2aa48479b4ec81fd32156070e29aea57e8b6ccff
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    pyim-candidates-create-get-pymap-chars -> pyim-candidates-pymap-chars
---
 pyim-candidates.el  | 4 ++--
 tests/pyim-tests.el | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pyim-candidates.el b/pyim-candidates.el
index 79de531b4b..d226e9118c 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -268,7 +268,7 @@
              ;; `pyim-pymap-py2cchar-get' 来查找,这个函数支持声母搜索。可以得到
              ;; 更多的词条。
              (w4 (when (and (not w3) (not ignore-pymap-chars))
-                   (pyim-candidates-create-get-pymap-chars
+                   (pyim-candidates-pymap-chars
                     (car (pyim-codes-create imobj scheme))))))
         (push w1 personal-words)
         (push w2 common-words)
@@ -280,7 +280,7 @@
     (setq pinyin-chars-2 (pyim-zip (nreverse pinyin-chars-2) fast-search))
     (list personal-words common-words pinyin-chars-1 pinyin-chars-2)))
 
-(defun pyim-candidates-create-get-pymap-chars (pinyin)
+(defun pyim-candidates-pymap-chars (pinyin)
   "获取 pymap 表里面的汉字。"
   (mapcar #'char-to-string
           (pyim-zip
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 384be5dbed..3a90c477b8 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -559,8 +559,8 @@
     (should (equal (pyim-candidates-dcache-words imobjs3 quanpin nil t)
                    '(("你" "尼") ("你" "尼") ("你" "尼" "你" "尼") nil)))))
 
-(ert-deftest pyim-tests-pyim-candidates-create-get-pymap-chars ()
-  (should (equal (cl-subseq (pyim-candidates-create-get-pymap-chars "ni") 0 10)
+(ert-deftest pyim-tests-pyim-candidates-pymap-chars ()
+  (should (equal (cl-subseq (pyim-candidates-pymap-chars "ni") 0 10)
                  '("你" "年" "娘" "鸟" "摄" "您" "宁" "牛" "尼" "念"))))
 
 (ert-deftest pyim-tests-pyim-candidates-search-buffer ()



reply via email to

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