aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-01-19 16:22:16 +0100
committerLars Ingebrigtsen2022-01-19 16:22:16 +0100
commit00a694628382ba378978aa4de33bff7d17034c84 (patch)
tree198d79faf91f141a38b3abe0644ebf3c63b2af98 /test
parent598038643f483eabe788d4910bea5d1518ee0015 (diff)
downloademacs-00a694628382ba378978aa4de33bff7d17034c84.tar.gz
emacs-00a694628382ba378978aa4de33bff7d17034c84.zip
Add new file textsec-check.el
* lisp/international/textsec-check.el: New file. * lisp/international/textsec.el (textsec-email-address-header-suspicious-p): Rename.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/international/textsec-tests.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/test/lisp/international/textsec-tests.el b/test/lisp/international/textsec-tests.el
index 8385c116f4f..c6268d14c7d 100644
--- a/test/lisp/international/textsec-tests.el
+++ b/test/lisp/international/textsec-tests.el
@@ -149,14 +149,19 @@
149 149
150(ert-deftest test-suspicious-email () 150(ert-deftest test-suspicious-email ()
151 (should-not 151 (should-not
152 (textsec-email-suspicious-p "Lars Ingebrigtsen <larsi@gnus.org>")) 152 (textsec-email-address-header-suspicious-p
153 "Lars Ingebrigtsen <larsi@gnus.org>"))
153 (should 154 (should
154 (textsec-email-suspicious-p "LÅrs Ingebrigtsen <larsi@gnus.org>")) 155 (textsec-email-address-header-suspicious-p
156 "LÅrs Ingebrigtsen <larsi@gnus.org>"))
155 (should 157 (should
156 (textsec-email-suspicious-p "Lars Ingebrigtsen <.larsi@gnus.org>")) 158 (textsec-email-address-header-suspicious-p
159 "Lars Ingebrigtsen <.larsi@gnus.org>"))
157 (should 160 (should
158 (textsec-email-suspicious-p "Lars Ingebrigtsen <larsi@gn\N{LEFT-TO-RIGHT ISOLATE}us.org>")) 161 (textsec-email-address-header-suspicious-p
162 "Lars Ingebrigtsen <larsi@gn\N{LEFT-TO-RIGHT ISOLATE}us.org>"))
159 163
160 (should (textsec-email-suspicious-p "דגבא <foo@bar.com>"))) 164 (should (textsec-email-address-header-suspicious-p
165 "דגבא <foo@bar.com>")))
161 166
162;;; textsec-tests.el ends here 167;;; textsec-tests.el ends here