branch: externals/pyim
commit ec8bbd9265c0d407dcaf5a4305188fc7e6ff3a09
Author: Feng Shu <tuma...@163.com>
Commit: Feng Shu <tuma...@163.com>

    * tests/pyim-tests.el (pyim-tests-pyim-cregexp): add wubi test: aaaa'aaaa
---
 tests/pyim-tests.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 2d332ac..03acd9f 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -582,7 +582,11 @@
     (puthash "wubi/aaaa" (list "工" "恭恭敬敬") pyim-dhashcache-code2word)
     (puthash "wubi/adww" (list "欺" "蒙古人" "其人" "欺人" "斯人" "惹人" "匧" "歁" "莢") 
pyim-dhashcache-code2word)
     (should (equal (pyim-cregexp-build "aaaa") "\\(?:aaaa\\|[工恭]恭?敬?敬?\\)"))
-    (should (equal (pyim-cregexp-build "adww") 
"\\(?:adww\\|[其匧惹斯欺歁莢蒙][人古]?人?\\)"))))
+    (should (equal (pyim-cregexp-build "adww") 
"\\(?:adww\\|[其匧惹斯欺歁莢蒙][人古]?人?\\)"))
+    (should (equal (pyim-cregexp-build "aaaa'aaaa")
+                   
"\\(?:\\(?:aaaa'\\|aaaa\\|[工恭]恭?敬?敬?\\)\\(?:aaaa\\|[工恭]恭?敬?敬?\\)\\)"))
+    (should (equal (pyim-cregexp-build-1 "aaaa'aaaa")
+                   
"\\(?:aaaa'\\|aaaa\\|[工恭][恭]?[敬]?[敬]?\\)\\(?:aaaa\\|[工恭][恭]?[敬]?[敬]?\\)"))))
 
 ;; ** pyim-import 相关单元测试
 (ert-deftest pyim-tests-pyim-import-words-and-counts ()

Reply via email to