branch: externals/pyim
commit fbf74cacf61dded45236b47dacd79f42185eeffb
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>
* 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 ()