summaryrefslogtreecommitdiff
path: root/test/lisp/international
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-01-22 11:58:05 +0200
committerEli Zaretskii <eliz@gnu.org>2022-01-22 11:58:05 +0200
commit682b6df6bfc7af98a28b54bd925cd33dead2c25d (patch)
tree3cae6a2583336037b7aea8091f740ebf342b73a0 /test/lisp/international
parentebe334cdc234de2897263aed4c05ac7088c11857 (diff)
downloademacs-682b6df6bfc7af98a28b54bd925cd33dead2c25d.tar.gz
emacs-682b6df6bfc7af98a28b54bd925cd33dead2c25d.tar.bz2
emacs-682b6df6bfc7af98a28b54bd925cd33dead2c25d.zip
Improve detection of suspicious uses of bidi controls
* lisp/international/textsec.el (textsec-bidi-controls-suspicious-p): New function. (textsec-name-suspicious-p): Use it. * test/lisp/international/textsec-tests.el (test-suspicious-name): Enable the test that was previously failing with 'bidi-find-overridden-directionality'.
Diffstat (limited to 'test/lisp/international')
-rw-r--r--test/lisp/international/textsec-tests.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/lisp/international/textsec-tests.el b/test/lisp/international/textsec-tests.el
index c3c7e9b59a4..ee0af66d992 100644
--- a/test/lisp/international/textsec-tests.el
+++ b/test/lisp/international/textsec-tests.el
@@ -136,10 +136,8 @@
(should (textsec-name-suspicious-p "LÅRS INGEBRIGTSEN"))
(should-not (textsec-name-suspicious-p "LÅRS INGEBRIGTSEN"))
- ;;; FIXME -- this test fail with `bidi-find-overridden-directionality'.
- (when nil
- (should (textsec-name-suspicious-p
- "Lars Ingebrigtsen\N{LEFT-TO-RIGHT OVERRIDE}")))
+ (should (textsec-name-suspicious-p
+ "Lars Ingebrigtsen\N{LEFT-TO-RIGHT OVERRIDE}"))
(should (textsec-name-suspicious-p
"Lars Ingebrigtsen\N{LEFT-TO-RIGHT OVERRIDE}f"))
(should-not (textsec-name-suspicious-p