Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita53dee4

Browse files
committed
Tweak "line" test to avoid platform-specific floating-point output
1 parent4cbb646 commita53dee4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/test/regress/expected/line.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
CREATE TABLE LINE_TBL (s line);
77
INSERT INTO LINE_TBL VALUES ('{1,-1,1}');
88
INSERT INTO LINE_TBL VALUES ('(0,0),(6,6)');
9-
INSERT INTO LINE_TBL VALUES ('10,-10 ,-3,-4');
9+
INSERT INTO LINE_TBL VALUES ('10,-10 ,-5,-4');
1010
INSERT INTO LINE_TBL VALUES ('[-1e6,2e2,3e5, -4e1]');
1111
INSERT INTO LINE_TBL VALUES ('(11,22,33,44)');
1212
INSERT INTO LINE_TBL VALUES ('[(1,0),(1,0)]');
@@ -43,7 +43,7 @@ select * from LINE_TBL;
4343
---------------------------------------------
4444
{1,-1,1}
4545
{1,-1,0}
46-
{-0.461538461538462,-1,-5.38461538461538}
46+
{-0.4,-1,-6}
4747
{-0.000184615384615385,-1,15.3846153846154}
4848
{1,-1,11}
4949
{0,-1,3}
@@ -56,7 +56,7 @@ SELECT * FROM LINE_TBL WHERE (s <-> line '[(1,2),(3,4)]') < 10;
5656
---------------------------------------------
5757
{1,-1,1}
5858
{1,-1,0}
59-
{-0.461538461538462,-1,-5.38461538461538}
59+
{-0.4,-1,-6}
6060
{-0.000184615384615385,-1,15.3846153846154}
6161
{1,-1,11}
6262
{0,-1,3}

‎src/test/regress/sql/line.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ CREATE TABLE LINE_TBL (s line);
88

99
INSERT INTO LINE_TBLVALUES ('{1,-1,1}');
1010
INSERT INTO LINE_TBLVALUES ('(0,0),(6,6)');
11-
INSERT INTO LINE_TBLVALUES ('10,-10 ,-3,-4');
11+
INSERT INTO LINE_TBLVALUES ('10,-10 ,-5,-4');
1212
INSERT INTO LINE_TBLVALUES ('[-1e6,2e2,3e5, -4e1]');
1313
INSERT INTO LINE_TBLVALUES ('(11,22,33,44)');
1414

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp