From 6b3135959d7f5469a274cee9a538ef05602f4824 Mon Sep 17 00:00:00 2001 From: serebrserg Date: Thu, 2 Mar 2017 14:33:38 +0300 Subject: [PATCH] add test for pointInEllipses --- .../queries/0_stateless/00429_point_in_ellipses.reference | 3 +++ dbms/tests/queries/0_stateless/00429_point_in_ellipses.sql | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00429_point_in_ellipses.reference create mode 100644 dbms/tests/queries/0_stateless/00429_point_in_ellipses.sql diff --git a/dbms/tests/queries/0_stateless/00429_point_in_ellipses.reference b/dbms/tests/queries/0_stateless/00429_point_in_ellipses.reference new file mode 100644 index 00000000000..2f1465d1598 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00429_point_in_ellipses.reference @@ -0,0 +1,3 @@ +1 +1 +0 diff --git a/dbms/tests/queries/0_stateless/00429_point_in_ellipses.sql b/dbms/tests/queries/0_stateless/00429_point_in_ellipses.sql new file mode 100644 index 00000000000..9ded2e0d440 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00429_point_in_ellipses.sql @@ -0,0 +1,6 @@ +SELECT pointInEllipses(33.3, 55.3, 33.4, 55.1, 1.0, 1.0) AS distance; +SELECT pointInEllipses(33.3 + v, 55.3 + v, 33.4, 55.1, 1.0, 1.0) AS distance from +( + select number + 0.1 as v from system.numbers limit 1 +); +SELECT pointInEllipses(33.3, 55.3, 33.4, 55.1, 0.1, 0.2) AS distance;