From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve test coverage of geometric types
Date: Wed, 26 Sep 2018 09:09:02 +0000
Message-ID: <E1g55oc-0004Mt-OD@gemulon.postgresql.org> (raw)
Improve test coverage of geometric types
This commit significantly increases test coverage of geo_ops.c, adding
tests for various issues addressed by 2e2a392de3 (which went undetected
for a long time, at least partially due to not being covered).
This also removes alternative results expecting -0 on some platforms.
Instead the functions are should return the same results everywhere,
transforming -0 to 0 if needed.
The tests are added to geometric.sql file, sorted by the left hand side
of the operators. There are many cross datatype operators, so this seems
like the best solution.
Author: Emre Hasegeli
Reviewed-by: Tomas Vondra
Discussion: https://www.postgresql.org/message-id/CAE2gYzxF7-5djV6-cEvqQu-fNsnt%3DEqbOURx7ZDg%2BVv6ZMTWbg%40mail...
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a3d2844852dc664718320b15cbc6d6bfa264e66e
Modified Files
--------------
src/test/regress/expected/box.out | 44 +-
src/test/regress/expected/circle.out | 39 +-
src/test/regress/expected/create_index.out | 73 +-
src/test/regress/expected/geometry.out | 4881 ++++++++++++++++++++++++++--
src/test/regress/expected/geometry_1.out | 4881 ++++++++++++++++++++++++++--
src/test/regress/expected/geometry_2.out | 563 ----
src/test/regress/expected/line.out | 272 +-
src/test/regress/expected/lseg.out | 24 +-
src/test/regress/expected/path.out | 49 +-
src/test/regress/expected/point.out | 358 +-
src/test/regress/expected/polygon.out | 200 +-
src/test/regress/sql/box.sql | 9 +
src/test/regress/sql/circle.sql | 10 +-
src/test/regress/sql/geometry.sql | 400 ++-
src/test/regress/sql/line.sql | 79 +-
src/test/regress/sql/lseg.sql | 9 +-
src/test/regress/sql/path.sql | 22 +-
src/test/regress/sql/point.sql | 10 +
src/test/regress/sql/polygon.sql | 91 +-
19 files changed, 10088 insertions(+), 1926 deletions(-)
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: tomas.vondra@postgresql.org
Subject: Re: pgsql: Improve test coverage of geometric types
In-Reply-To: <E1g55oc-0004Mt-OD@gemulon.postgresql.org>
References: <E1g55oc-0004Mt-OD@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