* lisp/international/textsec.el (textsec-mixed-numbers-p): Fix the
test.
(seq-uniq
(mapcar
(lambda (char)
- (get-char-code-property char 'numeric-value))
+ ;; Compare zeros in the respective decimal systems.
+ (- char (get-char-code-property char 'numeric-value)))
(seq-filter (lambda (char)
;; We're selecting the characters that
;; have a numeric property.
(ert-deftest test-mixed-numbers ()
(should-not (textsec-mixed-numbers-p "foo"))
(should-not (textsec-mixed-numbers-p "8foo8"))
+ (should-not (textsec-mixed-numbers-p "foo20@foo.org"))
(should (textsec-mixed-numbers-p "8foo৪")))
(ert-deftest test-resolved ()