From: Peter Eisentraut Date: Sun, 13 Oct 2013 01:17:59 +0000 (-0400) Subject: Tweak "line" test to avoid platform-specific floating-point output X-Git-Tag: REL9_4_BETA1~1058 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a53dee43fe585e673658b01e7354892dcede957e;p=thirdparty%2Fpostgresql.git Tweak "line" test to avoid platform-specific floating-point output --- diff --git a/src/test/regress/expected/line.out b/src/test/regress/expected/line.out index 7d222fc0c2c..f20abdc4301 100644 --- a/src/test/regress/expected/line.out +++ b/src/test/regress/expected/line.out @@ -6,7 +6,7 @@ CREATE TABLE LINE_TBL (s line); INSERT INTO LINE_TBL VALUES ('{1,-1,1}'); INSERT INTO LINE_TBL VALUES ('(0,0),(6,6)'); -INSERT INTO LINE_TBL VALUES ('10,-10 ,-3,-4'); +INSERT INTO LINE_TBL VALUES ('10,-10 ,-5,-4'); INSERT INTO LINE_TBL VALUES ('[-1e6,2e2,3e5, -4e1]'); INSERT INTO LINE_TBL VALUES ('(11,22,33,44)'); INSERT INTO LINE_TBL VALUES ('[(1,0),(1,0)]'); @@ -43,7 +43,7 @@ select * from LINE_TBL; --------------------------------------------- {1,-1,1} {1,-1,0} - {-0.461538461538462,-1,-5.38461538461538} + {-0.4,-1,-6} {-0.000184615384615385,-1,15.3846153846154} {1,-1,11} {0,-1,3} @@ -56,7 +56,7 @@ SELECT * FROM LINE_TBL WHERE (s <-> line '[(1,2),(3,4)]') < 10; --------------------------------------------- {1,-1,1} {1,-1,0} - {-0.461538461538462,-1,-5.38461538461538} + {-0.4,-1,-6} {-0.000184615384615385,-1,15.3846153846154} {1,-1,11} {0,-1,3} diff --git a/src/test/regress/sql/line.sql b/src/test/regress/sql/line.sql index cd9280be47d..94067b0cee6 100644 --- a/src/test/regress/sql/line.sql +++ b/src/test/regress/sql/line.sql @@ -8,7 +8,7 @@ CREATE TABLE LINE_TBL (s line); INSERT INTO LINE_TBL VALUES ('{1,-1,1}'); INSERT INTO LINE_TBL VALUES ('(0,0),(6,6)'); -INSERT INTO LINE_TBL VALUES ('10,-10 ,-3,-4'); +INSERT INTO LINE_TBL VALUES ('10,-10 ,-5,-4'); INSERT INTO LINE_TBL VALUES ('[-1e6,2e2,3e5, -4e1]'); INSERT INTO LINE_TBL VALUES ('(11,22,33,44)');