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

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

[elpa] externals/pyim e64c0be9e2 20/58: pyim-candidates-jianpin-words ->


From: ELPA Syncer
Subject: [elpa] externals/pyim e64c0be9e2 20/58: pyim-candidates-jianpin-words -> pyim-candidates--jianpin-words
Date: Fri, 24 Jun 2022 06:57:53 -0400 (EDT)

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

    pyim-candidates-jianpin-words -> 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 8053efa3d1..966dea5fbc 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -152,7 +152,7 @@
 (defun pyim-candidates--quanpin (imobjs scheme &optional fast-search)
   "用于全拼输入法的 `pyim-candidates-create' 方法内部使用的函数。"
   (let* ((znabc-words (pyim-candidates--znabc-words imobjs scheme fast-search))
-         (jianpin-words (pyim-candidates-jianpin-words imobjs scheme 
fast-search))
+         (jianpin-words (pyim-candidates--jianpin-words imobjs scheme 
fast-search))
          (quanpin-words (pyim-candidates--quanpin-words imobjs scheme 
fast-search))
          (personal-words (pyim-candidates--sort (nth 0 quanpin-words)))
          (common-words (nth 1 quanpin-words))
@@ -181,7 +181,7 @@
                       (pyim-zip codes))
               fast-search)))
 
-(defun pyim-candidates-jianpin-words (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 d1a08e707f..fe12f5a72c 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -571,7 +571,7 @@
     (should (equal (pyim-candidates--znabc-words imobjs quanpin t)
                    '("你好吗朋友" "你好吗" "你好")))))
 
-(ert-deftest pyim-tests-pyim-candidates-jianpin-words ()
+(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))
@@ -579,9 +579,9 @@
          (imobjs1 (pyim-imobjs-create "nih" quanpin))
          (imobjs2 (pyim-imobjs-create "ni" quanpin)))
     (puthash "n-h" (list "你好" "你坏" "尼耗" "南好" "内核" "内河") 
pyim-dhashcache-ishortcode2word)
-    (should (equal (pyim-candidates-jianpin-words imobjs1 quanpin)
+    (should (equal (pyim-candidates--jianpin-words imobjs1 quanpin)
                    '("你好" "你坏" "尼耗")))
-    (should-not (pyim-candidates-jianpin-words imobjs2 quanpin))))
+    (should-not (pyim-candidates--jianpin-words imobjs2 quanpin))))
 
 (defun pyim-tests-sublist (list n)
   (if (>= (length list) n)



reply via email to

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