diff mbox

Fix spellcheck test data

Message ID 20170213194722.GO1849@tucnak
State New
Headers show

Commit Message

Jakub Jelinek Feb. 13, 2017, 7:47 p.m. UTC
Hi!

Not really sure about this, but I'd expect if you meant to write
  "foofood",
you'd have written it that way and not
  "foo"
  "food",
Passes -fself-test either way, bootstrapped/regtested on x86_64-linux and
i686-linux, ok for trunk?

2017-02-13  Jakub Jelinek  <jakub@redhat.com>

	* spellcheck.c (test_data): Add , in between "foo" and "food".


	Jakub

Comments

David Malcolm Feb. 13, 2017, 7:53 p.m. UTC | #1
On Mon, 2017-02-13 at 20:47 +0100, Jakub Jelinek wrote:
> Hi!
> 
> Not really sure about this, but I'd expect if you meant to write
>   "foofood",
> you'd have written it that way and not
>   "foo"
>   "food",
> Passes -fself-test either way, bootstrapped/regtested on x86_64-linux
> and
> i686-linux, ok for trunk?

Oops, yes, this was a mistake.

> 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* spellcheck.c (test_data): Add , in between "foo" and "food".
> 
> --- gcc/spellcheck.c.jj	2017-01-01 12:45:35.000000000 +0100
> +++ gcc/spellcheck.c	2017-02-13 11:34:22.352425744 +0100
> @@ -221,7 +221,7 @@ test_find_closest_string ()
>  
>  static const char * const test_data[] = {
>    "",
> -  "foo"
> +  "foo",
>    "food",
>    "boo",
>   
>  "1234567890123456789012345678901234567890123456789012345678901234567
> 890"
> 
> 	Jakub
diff mbox

Patch

--- gcc/spellcheck.c.jj	2017-01-01 12:45:35.000000000 +0100
+++ gcc/spellcheck.c	2017-02-13 11:34:22.352425744 +0100
@@ -221,7 +221,7 @@  test_find_closest_string ()
 
 static const char * const test_data[] = {
   "",
-  "foo"
+  "foo",
   "food",
   "boo",
   "1234567890123456789012345678901234567890123456789012345678901234567890"