Skip to content

Commit 5d6a1ee

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 db87d3b commit 5d6a1ee

File tree

11 files changed

+447
-3504
lines changed

11 files changed

+447
-3504
lines changed

contrib/cube/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ OBJS= cube.o cubeparse.o
66
EXTENSION = cube
77
DATA = cube--1.0.sql cube--unpackaged--1.0.sql
88

9-
REGRESS = cube
9+
REGRESS = cube cube_sci
1010

1111
EXTRA_CLEAN = y.tab.c y.tab.h
1212

contrib/cube/expected/cube.out

Lines changed: 0 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -54,108 +54,6 @@ SELECT '-1.0'::cube AS cube;
5454
(-1)
5555
(1 row)
5656

57-
SELECT '1e27'::cube AS cube;
58-
cube
59-
---------
60-
(1e+27)
61-
(1 row)
62-
63-
SELECT '-1e27'::cube AS cube;
64-
cube
65-
----------
66-
(-1e+27)
67-
(1 row)
68-
69-
SELECT '1.0e27'::cube AS cube;
70-
cube
71-
---------
72-
(1e+27)
73-
(1 row)
74-
75-
SELECT '-1.0e27'::cube AS cube;
76-
cube
77-
----------
78-
(-1e+27)
79-
(1 row)
80-
81-
SELECT '1e+27'::cube AS cube;
82-
cube
83-
---------
84-
(1e+27)
85-
(1 row)
86-
87-
SELECT '-1e+27'::cube AS cube;
88-
cube
89-
----------
90-
(-1e+27)
91-
(1 row)
92-
93-
SELECT '1.0e+27'::cube AS cube;
94-
cube
95-
---------
96-
(1e+27)
97-
(1 row)
98-
99-
SELECT '-1.0e+27'::cube AS cube;
100-
cube
101-
----------
102-
(-1e+27)
103-
(1 row)
104-
105-
SELECT '1e-7'::cube AS cube;
106-
cube
107-
---------
108-
(1e-07)
109-
(1 row)
110-
111-
SELECT '-1e-7'::cube AS cube;
112-
cube
113-
----------
114-
(-1e-07)
115-
(1 row)
116-
117-
SELECT '1.0e-7'::cube AS cube;
118-
cube
119-
---------
120-
(1e-07)
121-
(1 row)
122-
123-
SELECT '-1.0e-7'::cube AS cube;
124-
cube
125-
----------
126-
(-1e-07)
127-
(1 row)
128-
129-
SELECT '1e-700'::cube AS cube;
130-
cube
131-
------
132-
(0)
133-
(1 row)
134-
135-
SELECT '-1e-700'::cube AS cube;
136-
cube
137-
------
138-
(0)
139-
(1 row)
140-
141-
SELECT '1234567890123456'::cube AS cube;
142-
cube
143-
------------------------
144-
(1.23456789012346e+15)
145-
(1 row)
146-
147-
SELECT '+1234567890123456'::cube AS cube;
148-
cube
149-
------------------------
150-
(1.23456789012346e+15)
151-
(1 row)
152-
153-
SELECT '-1234567890123456'::cube AS cube;
154-
cube
155-
-------------------------
156-
(-1.23456789012346e+15)
157-
(1 row)
158-
15957
SELECT '.1234567890123456'::cube AS cube;
16058
cube
16159
---------------------

0 commit comments

Comments
 (0)