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

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

[elpa] externals/pyim 6ef8630475 11/41: pyim-candidates-create-like-znab


From: ELPA Syncer
Subject: [elpa] externals/pyim 6ef8630475 11/41: pyim-candidates-create-like-znabc -> pyim-candidates-znabc-words
Date: Sat, 4 Jun 2022 09:57:45 -0400 (EDT)

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

    pyim-candidates-create-like-znabc -> pyim-candidates-znabc-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 320484f1ae..313c2003fd 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -165,7 +165,7 @@
 
 (defun pyim-candidates-create-quanpin (imobjs scheme &optional fast-search)
   "`pyim-candidates-create' 内部使用的函数。"
-  (let* ((znabc-words (pyim-candidates-create-like-znabc imobjs scheme 
fast-search))
+  (let* ((znabc-words (pyim-candidates-znabc-words imobjs scheme fast-search))
          (jianpin-words (pyim-candidates-create-like-jianpin imobjs scheme))
          (dcache-words (pyim-candidates-create-get-dcache-words imobjs scheme))
          (personal-words (nth 0 dcache-words))
@@ -203,7 +203,7 @@
              ,@pinyin-chars-2
              )))))
 
-(defun pyim-candidates-create-like-znabc (imobjs scheme &optional fast-search)
+(defun pyim-candidates-znabc-words (imobjs scheme &optional fast-search)
   "智能ABC模式,得到尽可能的拼音组合,查询这些组合,得到的词条做为联想词。"
   (let ((codes (mapcar (lambda (x)
                          (pyim-subconcat x "-"))
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index dac7c90dbe..424b0cf666 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -513,7 +513,7 @@
               wubi)
              '("㠭子叕" "㠭子又")))))
 
-(ert-deftest pyim-tests-pyim-candidates-create-like-znabc ()
+(ert-deftest pyim-tests-pyim-candidates-znabc-words ()
   (let* ((pyim-dhashcache-code2word (make-hash-table :test #'equal))
          (pyim-dhashcache-icode2word (make-hash-table :test #'equal))
          (quanpin (pyim-scheme-get 'quanpin))
@@ -521,9 +521,9 @@
     (puthash "ni-hao" (list "你好" "尼耗") pyim-dhashcache-code2word)
     (puthash "ni-hao-ma" (list "你好吗" "你好马") pyim-dhashcache-code2word)
     (puthash "ni-hao-ma-peng-you" (list "你好吗朋友" "你好吗喷油") 
pyim-dhashcache-code2word)
-    (should (equal (pyim-candidates-create-like-znabc imobjs quanpin)
+    (should (equal (pyim-candidates-znabc-words imobjs quanpin)
                    '("你好吗朋友" "你好吗" "你好" "你好吗喷油" "你好马" "尼耗")))
-    (should (equal (pyim-candidates-create-like-znabc imobjs quanpin t)
+    (should (equal (pyim-candidates-znabc-words imobjs quanpin t)
                    '("你好吗朋友" "你好吗" "你好")))))
 
 (ert-deftest pyim-tests-pyim-candidates-create-like-jianpin ()



reply via email to

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