Mercurial > hg > xemacs-beta
diff tests/automated/case-tests.el @ 4421:69b803c646cd
Fail searches immediately if searching for non-representable characters.
2008-02-11 Aidan Kehoe <kehoea@parhasard.net>
* search.c (search_buffer):
In the event that a character is not representable in the buffer,
fail immediately. Prevents an assertion failure in the code to
deal with whether Boyer-Moore search can be used for such
characters.
2008-02-11 Aidan Kehoe <kehoea@parhasard.net>
* automated/case-tests.el (Assert):
New test case; thank you Michael Sperber.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 11 Feb 2008 22:34:51 +0100 |
parents | bceb3e285ae7 |
children | 1982c8c55632 |
line wrap: on
line diff
--- a/tests/automated/case-tests.el Thu Feb 07 10:03:49 2008 +0100 +++ b/tests/automated/case-tests.el Mon Feb 11 22:34:51 2008 +0100 @@ -284,6 +284,9 @@ (goto-char (point-min)) (Assert (search-forward "Flei\xdf"))) +(with-temp-buffer + (Assert (search-forward "M\xe9zard" nil t))) + (Skip-Test-Unless (boundp 'debug-xemacs-searches) ; normal when we have DEBUG_XEMACS "not a DEBUG_XEMACS build"