From: David Malcolm <dmalcolm@redhat.com>
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm <dmalcolm@redhat.com>
Subject: [committed] spellcheck.c: add another selftest for PR c/82967
Date: Tue, 04 Dec 2018 21:35:00 -0000 [thread overview]
Message-ID: <1543962154-31885-1-git-send-email-dmalcolm@redhat.com> (raw)
This adds another testcase for overzealous spellchecker suggestions,
reported on IRC.
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Committed to trunk as r266798, under the "obvious" rule.
gcc/ChangeLog:
PR c/82967
* spellcheck.c (selftest::test_suggestions): Add another
assertion.
---
gcc/spellcheck.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/spellcheck.c b/gcc/spellcheck.c
index 690e6fa..391a242 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. */
--
1.8.5.3
reply other threads:[~2018-12-04 21:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1543962154-31885-1-git-send-email-dmalcolm@redhat.com \
--to=dmalcolm@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).