]> git.eshelyaron.com Git - emacs.git/commit
Correctly explain test failures with mixed uni/multibyte strings
authorMattias Engdegård <mattiase@acm.org>
Thu, 10 Oct 2019 19:20:20 +0000 (21:20 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 13 Oct 2019 18:29:27 +0000 (20:29 +0200)
commit67ed6ee7337d66dc1101e41bc2e67bde5ab0ecd4
tree2ab9cbaee0cd98bd3a01d496c91e6ca4fda041dd
parent556ae6674c600e19453a43de51817aa8b4df52fa
Correctly explain test failures with mixed uni/multibyte strings

* lisp/emacs-lisp/ert.el (ert--explain-equal-rec):
* test/lisp/emacs-lisp/ert-tests.el (ert-test-explain-equal):
When explaining a difference between a unibyte and a multibyte string,
first convert both to multibyte.  Otherwise, we might end up comparing
unibyte char C to multibyte char C, 127<C<256, and not detect the
difference (bug#30219).
lisp/emacs-lisp/ert.el
test/lisp/emacs-lisp/ert-tests.el