emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/pyim 0a7564386b 2/3: * tests/pyim-tests.el (pyim-tests-


From: ELPA Syncer
Subject: [elpa] externals/pyim 0a7564386b 2/3: * tests/pyim-tests.el (pyim-tests-pyim-cregexp): Fixed.
Date: Sun, 5 Jun 2022 00:58:02 -0400 (EDT)

branch: externals/pyim
commit 0a7564386b092f934e95ed6bd7ee3535ca990a93
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    * tests/pyim-tests.el (pyim-tests-pyim-cregexp): Fixed.
---
 tests/pyim-tests.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index 2be4b29d51..6736948d8b 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -878,9 +878,10 @@
     (should (string-match-p regexp1 str))
     (should-not (string-match-p regexp2 str)))
 
-  (let* ((imobj '(("d" "a" "d" "a") ("w" "ang" "w" "ang")))
-         (regexp1 (pyim-cregexp-build-quanpin imobj))
-         (regexp2 (pyim-cregexp-build-quanpin imobj nil nil t)))
+  (let* ((quanpin (pyim-scheme-get 'quanpin))
+         (imobj '(("d" "a" "d" "a") ("w" "ang" "w" "ang")))
+         (regexp1 (pyim-cregexp-create-from-imobj imobj quanpin))
+         (regexp2 (pyim-cregexp-create-from-imobj imobj quanpin nil nil t)))
     (should (string-match-p regexp1 "大王"))
     (should (string-match-p regexp1 "当王"))
     (should (string-match-p regexp2 "大王"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]