Skip to content

Commit

Permalink
Rehash regression output files
Browse files Browse the repository at this point in the history
  • Loading branch information
df7cb committed May 17, 2022
1 parent 17e6685 commit e35e881
Show file tree
Hide file tree
Showing 7 changed files with 3,217 additions and 2,606 deletions.
16 changes: 8 additions & 8 deletions expected/convert.out
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,20 @@ WITH
l(u) AS (VALUES
('s'),
('min'),
('h'),
('hr'),
('d'),
('julianyear'))
SELECT
l1.u, l2.u, l1.u::unit @ l2.u
FROM
l l1 CROSS JOIN l l2
\crosstabview
u | s | min | h | d | julianyear
------------+------------+------------------------+------------------------+------------------------+---------------------------------
s | 1 s | 0.0166666666666667 min | 0.000277777777777778 h | 1.15740740740741e-05 d | 3.16880878140289e-08 julianyear
min | 60 s | 1 min | 0.0166666666666667 h | 0.000694444444444444 d | 1.90128526884174e-06 julianyear
h | 3600 s | 60 min | 1 h | 0.0416666666666667 d | 0.000114077116130504 julianyear
d | 86400 s | 1440 min | 24 h | 1 d | 0.0027378507871321 julianyear
julianyear | 31557600 s | 525960 min | 8766 h | 365.25 d | 1 julianyear
u | s | min | hr | d | julianyear
------------+------------+------------------------+-------------------------+------------------------+---------------------------------
s | 1 s | 0.0166666666666667 min | 0.000277777777777778 hr | 1.15740740740741e-05 d | 3.16880878140289e-08 julianyear
min | 60 s | 1 min | 0.0166666666666667 hr | 0.000694444444444444 d | 1.90128526884174e-06 julianyear
hr | 3600 s | 60 min | 1 hr | 0.0416666666666667 d | 0.000114077116130504 julianyear
d | 86400 s | 1440 min | 24 hr | 1 d | 0.0027378507871321 julianyear
julianyear | 31557600 s | 525960 min | 8766 hr | 365.25 d | 1 julianyear
(5 rows)

4 changes: 2 additions & 2 deletions expected/crosstab.out
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ WHERE
a | 1e-22 m^2 | 1e-19 m^2 | 1e-16 m^2 | 1e-13 m^2 | 1 Pa | 1e-07 m^2 | 0.0001 m^2 | 0.0001 m^2 | 0.1 m^2 | 1 m^2 | 86.4 ks | 100 m^2 | 1000 m^2 | 10000 m^2 | 100000 m^2 | 100000000 m^2 | 100000000000 m^2 | 100000000000000 m^2 | 1 Pa | 1e+20 m^2 | 1e+23 m^2 | 1e+26 m^2
l | 1e-27 m^3 | 1e-24 m^3 | 1e-21 m^3 | 1e-18 m^3 | 1e-15 m^3 | 1e-12 m^3 | 1e-09 m^3 | 1e-09 m^3 | 1e-06 m^3 | 1e-05 m^3 | 0.0001 m^3 | 0.001 m^3 | 0.01 m^3 | 0.1 m^3 | 1 m^3 | 1000 m^3 | 1000000 m^3 | 1000000000 m^3 | 1000000000000 m^3 | 1e+15 m^3 | 1e+18 m^3 | 1e+21 m^3
t | 1 ag | 1 fg | 98.0665 kPa | 304.8 mm | 0.000473176473 m^3 | 1 N | 1 g | 1 g | 1 kg | 200 mg | 100 kg | 1 Mg | | 100 Mg | 1 Gg | 1 Tg | 1 Pg | 1 Eg | 1 Zg | 1 Yg | 1e+24 kg | 1e+27 kg
bar | 100 zPa | 100 aPa | 100 fPa | 100 pPa | 100 nPa | 100 µPa | 100 mPa | 100 mPa | 100 Pa | 1 kPa | 10 kPa | 100 kPa | 1 MPa | 1.05457180005237e-34 m^2*kg/s | 100 MPa | 100 GPa | 100 TPa | 100 PPa | 100 EPa | 100 ZPa | 100 YPa | 1e+29 Pa
bar | 100 zPa | 100 aPa | 100 fPa | 100 pPa | 100 nPa | 100 µPa | 100 mPa | 100 mPa | 100 Pa | 1 kPa | 10 kPa | 100 kPa | 1 MPa | 1.05457181764616e-34 m^2*kg/s | 100 MPa | 100 GPa | 100 TPa | 100 PPa | 100 EPa | 100 ZPa | 100 YPa | 1e+29 Pa
min | 60 ys | 60 zs | 60 as | 60 fs | 60 ps | 60 ns | 60 µs | 60 µs | 60 ms | 600 ms | 6 s | 60 s | 600 s | 6 ks | 60 ks | 60 Ms | 60 Gsec | 60 Ts | 60 Ps | 60 Es | 60 Zs | 60 Ys
h | 3.6 zs | 3.6 as | 3.6 fs | 3.6 ps | 10 klx | 3.6 µs | 3.6 ms | 3.6 ms | 1 mH | 20.1168 m | 360 s | 3.6 ks | 36 ks | 360 ks | 3.6 Ms | 3.6 Gsec | 3.6 Ts | 3.6 Ps | 3.6 Es | 3.6 Zs | 3.6 Ys | 3.6e+27 s
hr | 3.6 zs | 3.6 as | 3.6 fs | 3.6 ps | 3.6 ns | 3.6 µs | 3.6 ms | 3.6 ms | 3.6 s | 36 s | 360 s | 3.6 ks | 36 ks | 360 ks | 3.6 Ms | 3.6 Gsec | 3.6 Ts | 3.6 Ps | 3.6 Es | 3.6 Zs | 3.6 Ys | 3.6e+27 s
d | 914.4 mm | 86.4 as | 86.4 fs | 86.4 ps | 86.4 ns | 86.4 µs | 86.4 ms | 86.4 ms | 86.4 s | 1 cd | 8.64 ks | 86.4 ks | 864 ks | 0.238480942392 m^3 | 86.4 Ms | 86.4 Gsec | 86.4 Ts | 86.4 Ps | 86.4 Es | 86.4 Zs | 86.4 Ys | 8.64e+28 s
in | 2.54e-26 m | 25.4 ym | 25.4 zm | 25.4 am | 0.020457405 m^3 | 25.4 pm | 25.4 nm | 25.4 nm | 60 s | 254 µm | 2.54 mm | 25.4 mm | 254 mm | 2.54 m | 600 g | 25.4 km | 25.4 Mm | 25.4 Gm | 25.4 Tm | 25.4 Pm | 25.4 Em | 25.4 Zm
ft | 3.048e-25 m | 304.8 ym | 304.8 zm | 304.8 am | 304.8 fm | 304.8 pm | 304.8 nm | 304.8 nm | 304.8 µm | 3.048 mm | 30.48 mm | 304.8 mm | 3.048 m | 30.48 m | 304.8 m | 304.8 km | 304.8 Mm | 304.8 Gm | 304.8 Tm | 304.8 Pm | 304.8 Em | 304.8 Zm
Expand Down
6 changes: 3 additions & 3 deletions expected/round.out
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ SELECT '1|3m'::unit, '25m'::unit @ 'ft', '25m'::unit @@ 'ft';

SET extra_float_digits = 3;
SELECT '1|3m'::unit, '25m'::unit @ 'ft', '25m'::unit @@ 'ft';
unit | ?column? | ?column?
------------------------+------------------------+---------------------
333.333333333333314 mm | 82.0209973753280792 ft | 82.0209973753280792
unit | ?column? | ?column?
------------------------+------------------------+-------------------
333.333333333333314 mm | 82.0209973753280792 ft | 82.02099737532808
(1 row)

SET extra_float_digits = -3;
Expand Down
2 changes: 1 addition & 1 deletion expected/tables.out
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ SELECT * FROM units;
t | 1 Mg | f | f | f
bar | 100 kPa | f | f | f
min | 00:01:00 s | f | f | f
h | 01:00:00 s | f | f | f
hr | 01:00:00 s | f | f | f
d | 1 d | f | f | f
in | 25.4 mm | f | f | f
ft | 304.8 mm | f | f | f
Expand Down
11 changes: 6 additions & 5 deletions expected/time.out
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ SELECT '1.1 d'::unit; -- needs ULP clamping
SELECT name, unit, definition FROM unit_units WHERE dimension(unit) = 'TIME' ORDER BY unit, name COLLATE "C";
name | unit | definition
------------------+-----------------------------------------------+-----------------------------------------------
plancktime | 5.39105895420117e-44 s | hbar / planckmass c^2
t_P | 5.39105895420117e-44 s | plancktime
atomictime | 24.188843266026 as | hbar^3/coulombconst^2 atomicmass e^4
plancktime | 5.3912464483136e-44 s | hbar / planckmass c^2
t_P | 5.3912464483136e-44 s | plancktime
plancktime_red | 2.70277015656937e-43 s | hbar / planckmass_red c^2
atomictime | 24.1888432657895 as | atomicaction / atomicenergy
natural_time | 658.211956950907 as | hbar / eV
svedberg | 100 fs | 1e-13 s
㎰ | 1 ps | ps
㎱ | 1 ns | ns
Expand Down Expand Up @@ -196,7 +198,6 @@ SELECT name, unit, definition FROM unit_units WHERE dimension(unit) = 'TIME' ORD
bell | 00:30:00 s | 1|8 watch
lunour | 00:59:03.67055555555 s | 1|24 lune
siderealhour | 00:59:50.17043916667 s | 1|24 siderealday
h | 01:00:00 s | hour
hour | 01:00:00 s | 60 min
hr | 01:00:00 s | hour
decimalhour | 02:24:00 s | 1|10 day
Expand Down Expand Up @@ -263,7 +264,7 @@ SELECT name, unit, definition FROM unit_units WHERE dimension(unit) = 'TIME' ORD
millennia | 1000 commonyear + 242 d + 04:46:14.6784 s | millennium
millennium | 1000 commonyear + 242 d + 04:46:14.6784 s | 1000 years
cron | 1.00066e+06 commonyear + 203 d + 18:44:38.4 s | 1e6 years
(100 rows)
(101 rows)

-- units that differ when pushed through output-input functions
-- (same test as in units.sql, but with time_output_custom = true)
Expand Down
7 changes: 2 additions & 5 deletions expected/unit.out
Original file line number Diff line number Diff line change
Expand Up @@ -316,21 +316,18 @@ ORDER BY lower(p) COLLATE "C", lower(u) COLLATE "C";
---+-----+-------------------------------
a | t | 98.0665 kPa
c | d | 1 cd
c | h | 20.1168 m
d | a | 1 d
f | t | 304.8 mm
G | s | 100 µT
h | bar | 1.05457180005237e-34 m^2*kg/s
h | bar | 1.05457181764616e-34 m^2*kg/s
h | d | 0.238480942392 m^3
k | in | 600 g
m | h | 1 mH
m | in | 00:01:00 s
n | t | 1 N
P | a | 1 Pa
p | a | 1 Pa
p | h | 10 klx
p | in | 0.020457405 m^3
p | t | 0.000473176473 m^3
y | d | 914.4 mm
(18 rows)
(15 rows)

Loading

0 comments on commit e35e881

Please sign in to comment.