[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 50c4793 4/5: Fix test
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 50c4793 4/5: Fix test |
Date: |
Wed, 8 Dec 2021 00:57:31 -0500 (EST) |
branch: externals/pyim
commit 50c47931ead915b75972ac15c085ecfbda521b43
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Fix test
---
tests/pyim-tests.el | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 70c4b3b..766005a 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -43,12 +43,6 @@
(setq default-input-method "pyim")
(setq pyim-dicts (pyim-test-get-dicts))
-(ert-deftest pyim-test-generic ()
- (let* ((pyim-dcache-backend 'pyim-dregcache))
- (with-temp-buffer
- (should (not toggle-input-method-active))
- (call-interactively #'toggle-input-method))))
-
(ert-deftest pyim-test-pyim-permutate-list ()
(should (equal (pyim-permutate-list '((a b) (c d e) (f)))
'((a c f)
@@ -57,7 +51,7 @@
(b c f)
(b d f)
(b e f))))
- (should (equal (pyim-permutate-list nil) t))
+ (should (equal (pyim-permutate-list nil) nil))
(should (equal (pyim-permutate-list '((a))) '((a)))))
(ert-deftest pyim-test-pyim-zip ()
@@ -107,6 +101,7 @@
(should (equal (substring str (car pos) (cadr pos)) key))))
(ert-deftest pyim-test-pyim-cstring-split ()
+ (pyim-dcache-init-variables)
(let ((pyim-dhashcache-code2word (make-hash-table :test #'equal))
(str "我爱北京天安门"))
@@ -173,9 +168,15 @@
(should (equal (pyim-cstring-to-pinyin "银行很行" nil "-" nil nil t)
"yin-hang-hen-xing"))))
+(ert-deftest pyim-test-pyim-general ()
+ (let ((pyim-dcache-backend 'pyim-dregcache))
+ (with-temp-buffer
+ (should (not toggle-input-method-active))
+ (call-interactively #'toggle-input-method))))
+
(ert-deftest pyim-test-dregcache-backend ()
- (let* ((pyim-dcache-backend 'pyim-dregcache)
- words)
+ (let ((pyim-dcache-backend 'pyim-dregcache)
+ words)
(should (eq (length pyim-dregcache-cache) 0))
;; load dictionary
(pyim-dcache-update-code2word t)
- [elpa] externals/pyim updated (6f23551 -> 976f7f4), ELPA Syncer, 2021/12/08
- [elpa] externals/pyim 46f03c9 3/5: Add tests, ELPA Syncer, 2021/12/08
- [elpa] externals/pyim 976f7f4 5/5: 添加 pyim-flatten-tree, 旧版本的 Emacs 没有 flatten-tree., ELPA Syncer, 2021/12/08
- [elpa] externals/pyim 41b5eb2 1/5: * pyim-cstring.el (pyim-cstring-split-to-string-1): 修复插入分割符位置不对的问题。, ELPA Syncer, 2021/12/08
- [elpa] externals/pyim 03253ba 2/5: * pyim-cstring.el (pyim-cstring-split-to-string): 稍微优化。, ELPA Syncer, 2021/12/08
- [elpa] externals/pyim 50c4793 4/5: Fix test,
ELPA Syncer <=