From 4ff58ebb57e4ae177aae7533552689f2bb47b512 Mon Sep 17 00:00:00 2001 From: tminglei Date: Tue, 17 Oct 2017 19:32:46 +0800 Subject: [PATCH] update PgAggFuncSupportSuite --- .../slickpg/PgAggFuncSupportSuite.scala | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/core/src/test/scala/com/github/tminglei/slickpg/PgAggFuncSupportSuite.scala b/core/src/test/scala/com/github/tminglei/slickpg/PgAggFuncSupportSuite.scala index 4ddc066f..91a84404 100644 --- a/core/src/test/scala/com/github/tminglei/slickpg/PgAggFuncSupportSuite.scala +++ b/core/src/test/scala/com/github/tminglei/slickpg/PgAggFuncSupportSuite.scala @@ -185,9 +185,24 @@ class PgAggFuncSupportSuite extends FunSuite { ).andThen( DBIO.seq( tabs.map { t => - (rank("bar").within(t.name), denseRank("bar").within(t.name), percentRank("bar").within(t.name), cumeDist("bar").within(t.name)) + rank("bar").within(t.name) }.result.map { r => - assert(List((1, 1, 0.0, 0.6)) === r) + assert(List((1)) === r) + }, + tabs.map { t => + denseRank("bar").within(t.name) + }.result.map { r => + assert(List((1)) === r) + }, + tabs.map { t => + percentRank("bar").within(t.name) + }.result.map { r => + assert(List((0.0)) === r) + }, + tabs.map { t => + cumeDist("bar").within(t.name) + }.result.map { r => + assert(List((0.6)) === r) } ) ).andFinally(