]> granicus.if.org Git - postgresql/commit
Improve regression test coverage for src/backend/tsearch/spell.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 13 Apr 2018 17:49:52 +0000 (13:49 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 13 Apr 2018 17:49:52 +0000 (13:49 -0400)
commit8bf358c18ec930ddfb998873369e2fc38608d3e1
tree6f4ed97a614806f1f47a6650633bc0d7062531b9
parentd25c2ee9c038969eca8080177738dddf97a2cade
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
src/backend/tsearch/dicts/hunspell_sample_long.affix
src/backend/tsearch/dicts/hunspell_sample_long.dict
src/backend/tsearch/dicts/hunspell_sample_num.affix
src/backend/tsearch/dicts/hunspell_sample_num.dict
src/backend/tsearch/spell.c
src/test/regress/expected/tsdicts.out
src/test/regress/sql/tsdicts.sql