mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-09-11 08:55:25 +03:00
rr-quickcheck: apply compat interface.
This commit is contained in:
parent
655bbce00a
commit
d662ebe589
@ -26,7 +26,7 @@ library
|
||||
other-extensions: TemplateHaskell, MultiParamTypeClasses, FlexibleInstances
|
||||
build-depends: base <5
|
||||
, QuickCheck >=2
|
||||
, quickcheck-simple
|
||||
, quickcheck-simple >= 0.1.1
|
||||
, HDBC
|
||||
, HDBC-session
|
||||
, product-isomorphic
|
||||
|
@ -8,7 +8,7 @@ module Test.Relational.QuickCheck.Tests (
|
||||
) where
|
||||
|
||||
import Test.QuickCheck (Property)
|
||||
import Test.QuickCheck.Property (morallyDubiousIOProperty)
|
||||
import Test.QuickCheck.CompatIO (ioProperty)
|
||||
import Test.QuickCheck.Simple (Test, qcTest)
|
||||
import Control.Monad (unless)
|
||||
import Data.List (sort)
|
||||
@ -38,7 +38,7 @@ propQueryResult :: (Eq a, Show a, FromSql SqlValue a, IConnection conn)
|
||||
-> [a]
|
||||
-> Property
|
||||
propQueryResult connect initialize select expect =
|
||||
morallyDubiousIOProperty . withConnectionIO connect $ \conn -> do
|
||||
ioProperty . withConnectionIO connect $ \conn -> do
|
||||
initialize conn
|
||||
qresult <- runQuery' conn select ()
|
||||
let judge = qresult == expect
|
||||
|
Loading…
Reference in New Issue
Block a user