From ee1df92561b1420eb0acf0de09351850117316c7 Mon Sep 17 00:00:00 2001 From: Andy Eschbacher Date: Thu, 14 May 2015 15:45:57 -0400 Subject: [PATCH] fixed precision in tests --- test/CDB_EqualIntervalBinsTest.sql | 2 +- test/CDB_EqualIntervalBins_expect | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/CDB_EqualIntervalBinsTest.sql b/test/CDB_EqualIntervalBinsTest.sql index 2abaef7..f527b5b 100644 --- a/test/CDB_EqualIntervalBinsTest.sql +++ b/test/CDB_EqualIntervalBinsTest.sql @@ -2,4 +2,4 @@ WITH data AS ( SELECT array_agg(x) s FROM generate_series(1,300) x WHERE x % 5 != 0 AND x % 7 != 0 ) -SELECT unnest(CDB_EqualIntervalBins(s, 7)) FROM data \ No newline at end of file +SELECT round(unnest(CDB_EqualIntervalBins(s, 7)),7) FROM data \ No newline at end of file diff --git a/test/CDB_EqualIntervalBins_expect b/test/CDB_EqualIntervalBins_expect index 1e10fb8..2ad9fb0 100644 --- a/test/CDB_EqualIntervalBins_expect +++ b/test/CDB_EqualIntervalBins_expect @@ -1,7 +1,7 @@ -43.57142857 -86.14285714 -128.71428571 -171.28571429 -213.85714286 -256.42857143 +43.5714286 +86.1428571 +128.7142857 +171.2857143 +213.8571429 +256.4285714 299