Skip to content

Commit 4ffb7c7

Browse files
committed
Split contrib/cube platform-depended checks into separate test
We're currently maintaining two outputs for cube regression test. But that appears to be unsuitable, because these outputs are different in out few checks involving scientific notation. So, split checks involving scientific notation into separate test, making contrib/cube easier to maintain. Backpatch to all supported versions in order to make further backpatching easier. Discussion: https://postgr.es/m/CAPpHfdvJgWjxHsJTtT%2Bo1tz3OR8EFHcLQjhp-d3%2BUcmJLh-fQA%40mail.gmail.com Author: Alexander Korotkov Backpatch-through: 9.3
1 parent c2dfbd1 commit 4ffb7c7

File tree

7 files changed

+235
-1940
lines changed

7 files changed

+235
-1940
lines changed

contrib/cube/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DATA = cube--1.2.sql cube--1.1--1.2.sql cube--1.0--1.1.sql \
88
cube--unpackaged--1.0.sql
99
PGFILEDESC = "cube - multidimensional cube data type"
1010

11-
REGRESS = cube
11+
REGRESS = cube cube_sci
1212

1313
EXTRA_CLEAN = y.tab.c y.tab.h
1414

contrib/cube/expected/cube.out

Lines changed: 0 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -62,90 +62,6 @@ SELECT '-1.0'::cube AS cube;
6262
(-1)
6363
(1 row)
6464

65-
SELECT '1e27'::cube AS cube;
66-
cube
67-
---------
68-
(1e+27)
69-
(1 row)
70-
71-
SELECT '-1e27'::cube AS cube;
72-
cube
73-
----------
74-
(-1e+27)
75-
(1 row)
76-
77-
SELECT '1.0e27'::cube AS cube;
78-
cube
79-
---------
80-
(1e+27)
81-
(1 row)
82-
83-
SELECT '-1.0e27'::cube AS cube;
84-
cube
85-
----------
86-
(-1e+27)
87-
(1 row)
88-
89-
SELECT '1e+27'::cube AS cube;
90-
cube
91-
---------
92-
(1e+27)
93-
(1 row)
94-
95-
SELECT '-1e+27'::cube AS cube;
96-
cube
97-
----------
98-
(-1e+27)
99-
(1 row)
100-
101-
SELECT '1.0e+27'::cube AS cube;
102-
cube
103-
---------
104-
(1e+27)
105-
(1 row)
106-
107-
SELECT '-1.0e+27'::cube AS cube;
108-
cube
109-
----------
110-
(-1e+27)
111-
(1 row)
112-
113-
SELECT '1e-7'::cube AS cube;
114-
cube
115-
---------
116-
(1e-07)
117-
(1 row)
118-
119-
SELECT '-1e-7'::cube AS cube;
120-
cube
121-
----------
122-
(-1e-07)
123-
(1 row)
124-
125-
SELECT '1.0e-7'::cube AS cube;
126-
cube
127-
---------
128-
(1e-07)
129-
(1 row)
130-
131-
SELECT '-1.0e-7'::cube AS cube;
132-
cube
133-
----------
134-
(-1e-07)
135-
(1 row)
136-
137-
SELECT '1e-300'::cube AS cube;
138-
cube
139-
----------
140-
(1e-300)
141-
(1 row)
142-
143-
SELECT '-1e-300'::cube AS cube;
144-
cube
145-
-----------
146-
(-1e-300)
147-
(1 row)
148-
14965
SELECT 'infinity'::cube AS cube;
15066
cube
15167
------------
@@ -164,24 +80,6 @@ SELECT 'NaN'::cube AS cube;
16480
(NaN)
16581
(1 row)
16682

167-
SELECT '1234567890123456'::cube AS cube;
168-
cube
169-
------------------------
170-
(1.23456789012346e+15)
171-
(1 row)
172-
173-
SELECT '+1234567890123456'::cube AS cube;
174-
cube
175-
------------------------
176-
(1.23456789012346e+15)
177-
(1 row)
178-
179-
SELECT '-1234567890123456'::cube AS cube;
180-
cube
181-
-------------------------
182-
(-1.23456789012346e+15)
183-
(1 row)
184-
18583
SELECT '.1234567890123456'::cube AS cube;
18684
cube
18785
---------------------

0 commit comments

Comments
 (0)