pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve regression test coverage for src/backend/tsearch/spell.c
Date: Fri, 13 Apr 2018 17:49:58 +0000
Message-ID: <E1f72pi-000648-BO@gemulon.postgresql.org> (raw)

Improve regression test coverage for src/backend/tsearch/spell.c.

In passing, throw an error if the AF count is too small, rather than
just silently discarding extra affix entries.

Note that the new regression test cases require installing the
updated src/backend/tsearch/dicts files.

Arthur Zakirov

Discussion: https://postgr.es/m/20180413113447.GA32474@zakirov.localdomain

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8bf358c18ec930ddfb998873369e2fc38608d3e1

Modified Files
--------------
.../tsearch/dicts/hunspell_sample_long.affix       | 25 +++++++++++++++---
.../tsearch/dicts/hunspell_sample_long.dict        |  3 +++
.../tsearch/dicts/hunspell_sample_num.affix        |  8 ++++++
src/backend/tsearch/dicts/hunspell_sample_num.dict |  3 ++-
src/backend/tsearch/spell.c                        |  9 +++++--
src/test/regress/expected/tsdicts.out              | 30 ++++++++++++++++++++++
src/test/regress/sql/tsdicts.sql                   |  5 ++++
7 files changed, 77 insertions(+), 6 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1f72pi-000648-BO@gemulon.postgresql.org>
Permalink:  ../E1f72pi-000648-BO@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f72pi-000648-BO@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve regression test coverage for src/backend/tsearch/spell.c
  In-Reply-To: <E1f72pi-000648-BO@gemulon.postgresql.org>
  References: <E1f72pi-000648-BO@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox