[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim fbf74cacf6 3/4: * tests/pyim-tests.el (pyim-tests-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim fbf74cacf6 3/4: * tests/pyim-tests.el (pyim-tests-pyim-cloudim): Simplify. |
Date: |
Mon, 6 Jun 2022 23:57:52 -0400 (EDT) |
branch: externals/pyim
commit fbf74cacf61dded45236b47dacd79f42185eeffb
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* tests/pyim-tests.el (pyim-tests-pyim-cloudim): Simplify.
---
tests/pyim-tests.el | 23 +----------------------
1 file changed, 1 insertion(+), 22 deletions(-)
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index efb3e7fe36..8834b10085 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -1315,28 +1315,7 @@ Transfer-Encoding: chunked
[\"SUCCESS\",[[\"nihao\",[\"你好\"],[],{\"annotation\":[\"ni
hao\"],\"candidate_type\":[0],\"lc\":[\"16 16\"]}]]]")
(should (equal (pyim-cloudim-parse-google-buffer) '("你好")))
- (should (equal (get-text-property 0 :comment (car
(pyim-cloudim-parse-google-buffer))) "(云)")))
-
- (when (not noninteractive)
- (let ((wubi (pyim-scheme-get 'wubi)))
- (should (equal (pyim-candidates-cloud-search "nihao" wubi) nil))
- (should (equal (pyim-candidates-cloud-search "nihao" wubi) nil)))
-
- (let ((pyim-cloudim 'baidu)
- (quanpin (pyim-scheme-get 'quanpin)))
- (should (equal (pyim-candidates-cloud-search "nihao" quanpin) '("你好"))))
-
- (let ((pyim-cloudim 'google)
- (quanpin (pyim-scheme-get 'quanpin)))
- (should (equal (pyim-candidates-cloud-search "nihao" quanpin) '("你好"))))
-
- (let ((pyim-cloudim 'xxx)
- (quanpin (pyim-scheme-get 'quanpin)))
- (should (not (pyim-candidates-cloud-search "nihao" quanpin))))
-
- (let ((pyim-cloudim nil)
- (quanpin (pyim-scheme-get 'quanpin)))
- (should (not (pyim-candidates-cloud-search "nihao" quanpin))))))
+ (should (equal (get-text-property 0 :comment (car
(pyim-cloudim-parse-google-buffer))) "(云)"))))
;; ** pyim-probe 相关单元测试
(ert-deftest pyim-tests-pyim-probe-program-mode ()