From: David Malcolm Date: Tue, 4 Dec 2018 21:33:08 +0000 (+0000) Subject: spellcheck.c: add another selftest for PR c/82967 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=206d8779eb286b3bdbfab5723a5265357ccf33b3;p=gcc.git spellcheck.c: add another selftest for PR c/82967 This adds another testcase for overzealous spellchecker suggestions, reported on IRC. gcc/ChangeLog: PR c/82967 * spellcheck.c (selftest::test_suggestions): Add another assertion. From-SVN: r266798 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a77ccdb2313..795dbb11f8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-12-04 David Malcolm + + PR c/82967 + * spellcheck.c (selftest::test_suggestions): Add another + assertion. + 2018-12-04 Martin Sebor * doc/extend.texi (__builtin_has_attribute): Fix typo. diff --git a/gcc/spellcheck.c b/gcc/spellcheck.c index 690e6fa674f..391a2424ba6 100644 --- a/gcc/spellcheck.c +++ b/gcc/spellcheck.c @@ -378,6 +378,9 @@ test_suggestions () ASSERT_NOT_SUGGESTED_FOR ("__DATE__", "__i386__"); // dist == 4, max_length == min_length == 8 + + ASSERT_NOT_SUGGESTED_FOR ("start_input_device", "InputDevice"); + // dist == 9, max_length == 18, min_length == 11 } /* Verify that find_closest_string is sane. */