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

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

[elpa] externals/pyim c4d73f836d 13/41: pyim-candidates-create-get-dcach


From: ELPA Syncer
Subject: [elpa] externals/pyim c4d73f836d 13/41: pyim-candidates-create-get-dcache-words -> pyim-candidates-dcache-words
Date: Sat, 4 Jun 2022 09:57:46 -0400 (EDT)

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

    pyim-candidates-create-get-dcache-words -> pyim-candidates-dcache-words
---
 pyim-candidates.el  | 4 ++--
 tests/pyim-tests.el | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pyim-candidates.el b/pyim-candidates.el
index 88ee5ee296..79de531b4b 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -167,7 +167,7 @@
   "`pyim-candidates-create' 内部使用的函数。"
   (let* ((znabc-words (pyim-candidates-znabc-words imobjs scheme fast-search))
          (jianpin-words (pyim-candidates-jianpin-words imobjs scheme))
-         (dcache-words (pyim-candidates-create-get-dcache-words imobjs scheme))
+         (dcache-words (pyim-candidates-dcache-words imobjs scheme))
          (personal-words (nth 0 dcache-words))
          (common-words (nth 1 dcache-words))
          (pinyin-chars-1 (nth 2 dcache-words))
@@ -245,7 +245,7 @@
           (push (delete-dups (append w2 w1)) jianpin-words)))
       (pyim-zip (nreverse jianpin-words) fast-search))))
 
-(defun pyim-candidates-create-get-dcache-words (imobjs scheme &optional 
fast-search ignore-pymap-chars)
+(defun pyim-candidates-dcache-words (imobjs scheme &optional fast-search 
ignore-pymap-chars)
   "获取个人词条,词库词条和第一汉字列表。"
   (let (personal-words common-words pinyin-chars-1 pinyin-chars-2)
     (dolist (imobj imobjs)
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index a475c0c322..384be5dbed 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -552,11 +552,11 @@
     (puthash "ni" (list "你" "尼") pyim-dhashcache-code2word)
     (puthash "ni-hao" (list "你好" "尼耗") pyim-dhashcache-code2word)
     (puthash "n-h" (list "你好" "你坏" "尼耗" "南好" "内核" "内河") 
pyim-dhashcache-ishortcode2word)
-    (should (equal (pyim-candidates-create-get-dcache-words imobjs1 quanpin 
nil t)
+    (should (equal (pyim-candidates-dcache-words imobjs1 quanpin nil t)
                    '(("你" "您" "妮") nil nil nil)))
-    (should (equal (pyim-candidates-create-get-dcache-words imobjs2 quanpin 
nil t)
+    (should (equal (pyim-candidates-dcache-words imobjs2 quanpin nil t)
                    '(nil ("你好" "尼耗") ("你好" "尼耗") nil)))
-    (should (equal (pyim-candidates-create-get-dcache-words imobjs3 quanpin 
nil t)
+    (should (equal (pyim-candidates-dcache-words imobjs3 quanpin nil t)
                    '(("你" "尼") ("你" "尼") ("你" "尼" "你" "尼") nil)))))
 
 (ert-deftest pyim-tests-pyim-candidates-create-get-pymap-chars ()



reply via email to

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