branch: externals/pyim commit 7175bae1f6e560a42e149e629d20bbcef493d167 Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
* tests/pyim-tests.el (pyim-tests-pyim-dcache-insert-word): Update. --- tests/pyim-tests.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el index 9dec7999af..829f0e1e81 100644 --- a/tests/pyim-tests.el +++ b/tests/pyim-tests.el @@ -1066,7 +1066,10 @@ ni-hao 你好 尼耗 (pyim-dcache-insert-word "呢耗" "ni-hao" nil) (pyim-dcache-insert-word (propertize "你豪" :noexport t) "ni-hao" nil) (should (equal (gethash "ni-hao" pyim-dhashcache-icode2word) - '("尼耗" "你好" "呢耗" #("你豪" 0 2 (:noexport t))))))) + '("尼耗" "你好" "呢耗" #("你豪" 0 2 (:noexport t))))) + (should (get-text-property 0 :noexport (nth 3 (gethash "ni-hao" pyim-dhashcache-icode2word)))) + (pyim-dcache-insert-word "你豪" "ni-hao" nil) + (should-not (get-text-property 0 :noexport (nth 3 (gethash "ni-hao" pyim-dhashcache-icode2word)))))) (ert-deftest pyim-tests-pyim-dcache-update-wordcount () (let ((pyim-dcache-backend 'pyim-dhashcache)