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

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

[elpa] externals/pyim a4143ce691 12/41: pyim-candidates-create-like-jian


From: ELPA Syncer
Subject: [elpa] externals/pyim a4143ce691 12/41: pyim-candidates-create-like-jianpin -> pyim-candidates-jianpin-words
Date: Sat, 4 Jun 2022 09:57:46 -0400 (EDT)

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

    pyim-candidates-create-like-jianpin -> pyim-candidates-jianpin-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 313c2003fd..88ee5ee296 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -166,7 +166,7 @@
 (defun pyim-candidates-create-quanpin (imobjs scheme &optional fast-search)
   "`pyim-candidates-create' 内部使用的函数。"
   (let* ((znabc-words (pyim-candidates-znabc-words imobjs scheme fast-search))
-         (jianpin-words (pyim-candidates-create-like-jianpin imobjs scheme))
+         (jianpin-words (pyim-candidates-jianpin-words imobjs scheme))
          (dcache-words (pyim-candidates-create-get-dcache-words imobjs scheme))
          (personal-words (nth 0 dcache-words))
          (common-words (nth 1 dcache-words))
@@ -214,7 +214,7 @@
                       (pyim-zip codes))
               fast-search)))
 
-(defun pyim-candidates-create-like-jianpin (imobjs scheme &optional 
fast-search)
+(defun pyim-candidates-jianpin-words (imobjs scheme &optional fast-search)
   "简拼模式。
 
  假如输入 \"nih\" ,那么搜索 code 为 \"n-h\" 的词条,然后筛选出所
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 424b0cf666..a475c0c322 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -526,7 +526,7 @@
     (should (equal (pyim-candidates-znabc-words imobjs quanpin t)
                    '("你好吗朋友" "你好吗" "你好")))))
 
-(ert-deftest pyim-tests-pyim-candidates-create-like-jianpin ()
+(ert-deftest pyim-tests-pyim-candidates-jianpin-words ()
   (let* ((pyim-dhashcache-code2word (make-hash-table :test #'equal))
          (pyim-dhashcache-icode2word (make-hash-table :test #'equal))
          (pyim-dhashcache-ishortcode2word (make-hash-table :test #'equal))
@@ -534,9 +534,9 @@
          (imobjs1 (pyim-imobjs-create "nih" quanpin))
          (imobjs2 (pyim-imobjs-create "ni" quanpin)))
     (puthash "n-h" (list "你好" "你坏" "尼耗" "南好" "内核" "内河") 
pyim-dhashcache-ishortcode2word)
-    (should (equal (pyim-candidates-create-like-jianpin imobjs1 quanpin)
+    (should (equal (pyim-candidates-jianpin-words imobjs1 quanpin)
                    '("你好" "你坏" "尼耗")))
-    (should-not (pyim-candidates-create-like-jianpin imobjs2 quanpin))))
+    (should-not (pyim-candidates-jianpin-words imobjs2 quanpin))))
 
 (ert-deftest pyim-tests-pyim-candidates-get-dcache-words ()
   (let* ((pyim-dhashcache-code2word (make-hash-table :test #'equal))



reply via email to

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