Skip to content

Commit

Permalink
Test for #11
Browse files Browse the repository at this point in the history
  • Loading branch information
winmain committed May 21, 2018
1 parent d0cc214 commit 57b9a1f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test-postgresql/testSrc/query/common/AggregateFunTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package query.common

import common.Resources
import model.db.common.User
import querio.Fun
import test.DbFunSpec

class AggregateFunTest extends DbFunSpec(schemaSql = Resources.commonSchema) {

test("on empty result should return empty resultset") {db =>
val result = db.query(_ select User from User fetchOne())
assert(result === None)
test("count on empty table should return 0") {db =>
val result = db.query(_ select Fun.count from User fetchOne())
assert(result === Some(0))
}
}

0 comments on commit 57b9a1f

Please sign in to comment.