From 8af3a872cde553c0e330a0a31c74f4e977f3de38 Mon Sep 17 00:00:00 2001 From: Elliot Chance Date: Mon, 18 Nov 2024 21:10:17 -0500 Subject: [PATCH] fixing tests --- tests/double-precision.sql | 10 +++++----- tests/real.sql | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/double-precision.sql b/tests/double-precision.sql index 25f1820..84530e9 100644 --- a/tests/double-precision.sql +++ b/tests/double-precision.sql @@ -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; @@ -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; @@ -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 diff --git a/tests/real.sql b/tests/real.sql index b3cbfaa..066c52d 100644 --- a/tests/real.sql +++ b/tests/real.sql @@ -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);