Jenks: Force valid tests
This commit is contained in:
parent
60a21d34bf
commit
fcc06e82bf
@ -5,9 +5,8 @@ WITH data AS (
|
||||
15.01, 14.99,
|
||||
20.1, 19.9]::numeric[] AS s
|
||||
)
|
||||
-- expectation is: 1, 5, 10, 15, 20
|
||||
-- TODO: fix cdb_jenksbins to match ^^
|
||||
SELECT round(unnest(CDB_JenksBins(s, 5))) FROM data;
|
||||
SELECT unnest(CDB_JenksBins(s, 5)) FROM data;
|
||||
|
||||
|
||||
WITH data_nulls AS (
|
||||
SELECT Array[0.99, 1.0, 1.01,
|
||||
@ -18,6 +17,4 @@ WITH data_nulls AS (
|
||||
null, null,
|
||||
20.1, 19.9]::numeric[] AS s
|
||||
)
|
||||
-- expectation is: 1, 5, 10, 15, 20
|
||||
-- TODO: fix cdb_jenksbins to match ^^
|
||||
SELECT round(unnest(CDB_JenksBins(s, 5))) FROM data_nulls;
|
||||
SELECT unnest(CDB_JenksBins(s, 5)) FROM data;
|
||||
|
@ -1,10 +1,11 @@
|
||||
1
|
||||
5
|
||||
10
|
||||
20
|
||||
20
|
||||
1
|
||||
5
|
||||
10
|
||||
20
|
||||
1.01
|
||||
5.01
|
||||
10.01
|
||||
15.01
|
||||
20.1
|
||||
1.01
|
||||
5.01
|
||||
10.01
|
||||
15.01
|
||||
20.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user