[PATCH] Prefer simple case changes in spelling suggestions

Pip Cet pipcet@gmail.com
Sat May 30 13:40:39 GMT 2020


On Fri, May 29, 2020 at 6:21 PM Pip Cet <pipcet@gmail.com> wrote:
> IIRC, minimum string alignment does not satisfy the triangle
> inequality anyway, so test_metric_conditions should probably not
> pretend to test it...

I did remember correctly, though of course that should have been
"optimal string alignment" :-). If you change the spellcheck.c
test_data array to include "abc", "ac", and "ca", the self-test will
fail, even without your patch.

I think we should just omit the triangle inequality test from the
self-test, as in the attached patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-test-the-triangle-inequality-in-the-spellcheck.patch
Type: text/x-patch
Size: 2374 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200530/080af84e/attachment.bin>


More information about the Gcc-patches mailing list