[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 9a6073f5f4 17/35: pyim-dhashcache-pinyin-string< -
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 9a6073f5f4 17/35: pyim-dhashcache-pinyin-string< -> pyim-dhashcache--pinyin-string< |
Date: |
Fri, 24 Jun 2022 08:58:06 -0400 (EDT) |
branch: externals/pyim
commit 9a6073f5f45bd8f13a9ed6df62e6b156435d390c
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
pyim-dhashcache-pinyin-string< -> pyim-dhashcache--pinyin-string<
---
pyim-dhashcache.el | 4 ++--
tests/pyim-tests.el | 20 ++++++++++----------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el
index eff6d93580..756545ebaf 100644
--- a/pyim-dhashcache.el
+++ b/pyim-dhashcache.el
@@ -770,14 +770,14 @@ pyim 使用的词库文件是简单的文本文件,编码 *强制* 为 \\='utf
pyim-dhashcache-icode2word)
(setq export-lines
(sort export-lines
- #'pyim-dhashcache-pinyin-string<))
+ #'pyim-dhashcache--pinyin-string<))
(goto-char (point-min))
(insert ";;; -*- coding: utf-8-unix -*-\n")
(dolist (line export-lines)
(insert line))
(pyim-dcache-write-file file confirm))))
-(defun pyim-dhashcache-pinyin-string< (a b)
+(defun pyim-dhashcache--pinyin-string< (a b)
"比较 A 和 B 两个字符串的拼音的大小。"
(let ((pinyin1 (pyim-cstring-to-pinyin-simple a))
(pinyin2 (pyim-cstring-to-pinyin-simple b)))
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index be623f688e..1c6202d0a9 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -1222,17 +1222,17 @@ wo-hao 我好
'("/home/user/test3.pyim" "/home/user/test2.pyim")))))
;; ** pyim-dhashcache 相关单元测试
-(ert-deftest pyim-tests-pyim-dhashcache-pinyin-string< ()
- (should (pyim-dhashcache-pinyin-string< "啊" "波"))
+(ert-deftest pyim-tests-pyim-dhashcache--pinyin-string< ()
+ (should (pyim-dhashcache--pinyin-string< "啊" "波"))
(should-not (string< "锕" "波"))
- (should (pyim-dhashcache-pinyin-string< "锕" "波"))
- (should-not (pyim-dhashcache-pinyin-string< "波" "啊"))
- (should (pyim-dhashcache-pinyin-string< "a" "b"))
- (should-not (pyim-dhashcache-pinyin-string< "b" "a"))
- (should (pyim-dhashcache-pinyin-string< "aa" "ab"))
- (should-not (pyim-dhashcache-pinyin-string< "ab" "aa"))
- (should (pyim-dhashcache-pinyin-string< "你不好" "你好"))
- (should-not (pyim-dhashcache-pinyin-string< "你好" "你不好"))
+ (should (pyim-dhashcache--pinyin-string< "锕" "波"))
+ (should-not (pyim-dhashcache--pinyin-string< "波" "啊"))
+ (should (pyim-dhashcache--pinyin-string< "a" "b"))
+ (should-not (pyim-dhashcache--pinyin-string< "b" "a"))
+ (should (pyim-dhashcache--pinyin-string< "aa" "ab"))
+ (should-not (pyim-dhashcache--pinyin-string< "ab" "aa"))
+ (should (pyim-dhashcache--pinyin-string< "你不好" "你好"))
+ (should-not (pyim-dhashcache--pinyin-string< "你好" "你不好"))
)
(ert-deftest pyim-tests-pyim-dhashcache--get-ishortcodes-shortcodes ()
- [elpa] externals/pyim fea5fe56e3 06/35: pyim-dhashcache-update* -> pyim-dhashcache--update*, (continued)
- [elpa] externals/pyim fea5fe56e3 06/35: pyim-dhashcache-update* -> pyim-dhashcache--update*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 4a3a27fe54 09/35: pyim-dhashcache-put -> pyim-dhashcache--put, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 8f195d4efe 19/35: pyim-dregcache- -> pyim-dregcache--, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 93e54a0783 23/35: pyim-process-candidates-last -> pyim-process--candidates-last, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim e264cbe5f5 02/35: pyim-preview-delete-overlay -> pyim-preview--delete-overlay, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 3454118ea9 08/35: pyim-dhashcache-init* -> pyim-dhashcache--init*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 91ffc476b8 11/35: pyim-dhashcache-get* -> pyim-dhashcache--get*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim e5920bae41 28/35: pyim-process-auto-select -> pyim-process--auto-select, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 93b372c8f9 01/35: pyim-preview-setup-overlay -> pyim-preview--setup-overlay, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 73ee676657 04/35: pyim-preview-delete-string -> pyim-preview--delete-string, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 9a6073f5f4 17/35: pyim-dhashcache-pinyin-string< -> pyim-dhashcache--pinyin-string<,
ELPA Syncer <=
- [elpa] externals/pyim 46eaaa937d 10/35: pyim-dhashcache-insert* -> pyim-dhashcache--insert*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim d8f2e8b6d6 18/35: Add comment to pyim-dhashcache.el, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 1aeddb6172 33/35: pyim-process-merge-candidates -> pyim-process--merge-candidates, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim d42cc01d44 13/35: pyim-dhashcache-calculate-priority -> pyim-dhashcache--calculate-priority, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim d247ac664e 03/35: pyim-preview-refresh -> pyim-preview--refresh, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim b4f252016c 16/35: pyim-dhashcache-export* -> pyim-dhashcache--export*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 9da901bf0f 15/35: pyim-dhashcache-save* -> pyim-dhashcache--save*, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 4005949cce 21/35: pyim-process-run-delay-timer -> pyim-process--run-delay-timer, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 461b9bcc0a 22/35: pyim-process-imobjs -> pyim-process--imobjs, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 30bc394852 25/35: pyim-process-candidates -> pyim-process--candidates, ELPA Syncer, 2022/06/24