Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotchance committed Nov 19, 2024
1 parent 2b947a4 commit 8af3a87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tests/double-precision.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ VALUES 53.7e0 - CAST(1.23 AS DOUBLE PRECISION);

/* types */
VALUES CAST(-2000000000.1 AS DOUBLE PRECISION) - 500000000.7e0;
-- COL1: -0.25000000008e+10 (DOUBLE PRECISION)
-- COL1: -2.5000000008e+09 (DOUBLE PRECISION)

/* types */
VALUES -500000000.7e0 - CAST(2000000000.1 AS DOUBLE PRECISION);
-- COL1: -0.25000000008e+10 (DOUBLE PRECISION)
-- COL1: -2.5000000008e+09 (DOUBLE PRECISION)

/* types */
VALUES CAST(12.3 AS DOUBLE PRECISION) * 53.7e0;
Expand All @@ -93,11 +93,11 @@ VALUES -53.7e0 * CAST(12.3 AS DOUBLE PRECISION);

/* types */
VALUES CAST(-300000.1 AS DOUBLE PRECISION) * 200000.7e0;
-- COL1: -6.000023000007e+10 (DOUBLE PRECISION)
-- COL1: -6.00002300001e+10 (DOUBLE PRECISION)

/* types */
VALUES -300000.7e0 * CAST(200000.1 AS DOUBLE PRECISION);
-- COL1: -6.000017000007e+10 (DOUBLE PRECISION)
-- COL1: -6.00001700001e+10 (DOUBLE PRECISION)

/* types */
VALUES CAST(1.23 AS DOUBLE PRECISION) / 53.7e0;
Expand Down Expand Up @@ -128,5 +128,5 @@ SELECT * FROM foo;
SELECT CAST(x AS BIGINT) FROM foo;
-- msg: CREATE TABLE 1
-- msg: INSERT 1
-- X: 0.1234567891235e+27
-- X: 1.23456789123e+26
-- error 22003: numeric value out of range
4 changes: 2 additions & 2 deletions tests/real.sql
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ VALUES CAST(-53.7 AS REAL) * CAST(12.3 AS REAL);

/* types */
VALUES CAST(-300000.1 AS REAL) * CAST(200000.7 AS REAL);
-- COL1: -6.000023e+10 (REAL)
-- COL1: -6.00002e+10 (REAL)

/* types */
VALUES CAST(-300000.7 AS REAL) * CAST(200000.1 AS REAL);
-- COL1: -0.6000017e+11 (REAL)
-- COL1: -6.00002e+10 (REAL)

/* types */
VALUES CAST(1.23 AS REAL) / CAST(53.7 AS REAL);
Expand Down

0 comments on commit 8af3a87

Please sign in to comment.