Skip to content

Commit

Permalink
Add signleFinish test.
Browse files Browse the repository at this point in the history
  • Loading branch information
zenzike committed Feb 26, 2012
1 parent cfd0b43 commit 6af842c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions testsrc/TestSbasics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ openClosedb = sqlTestCase $
do dbh <- connectDB
disconnect dbh

singleFinish = dbTestCase $ \dbh ->
do sth <- prepare dbh "SELECT 1 + 1"
sExecute sth []
finish sth

multiFinish = dbTestCase (\dbh ->
do sth <- prepare dbh "SELECT 1 + 1"
sExecute sth []
Expand Down Expand Up @@ -137,6 +142,7 @@ testWithTransaction = dbTestCase (\dbh ->
tests = TestList
[
TestLabel "openClosedb" openClosedb,
TestLabel "singleFinish" singleFinish,
TestLabel "multiFinish" multiFinish,
TestLabel "basicQueries" basicQueries,
TestLabel "createTable" createTable,
Expand Down

0 comments on commit 6af842c

Please sign in to comment.