trivial test change to illustrate alternative to pick
This commit is contained in:
@@ -86,9 +86,8 @@ spec = around dbWithSchema $ do
|
|||||||
signInRole user (pass <> "crap") conn `shouldReturn` LoginFailed
|
signInRole user (pass <> "crap") conn `shouldReturn` LoginFailed
|
||||||
|
|
||||||
describe "pgFmtIdent" $
|
describe "pgFmtIdent" $
|
||||||
it "Does what format %I would do" $ \conn ->
|
it "Does what format %I would do" $ \conn -> property $ \fuzz ->
|
||||||
property $ monadicIO $ do
|
monadicIO $ do
|
||||||
fuzz <- pick arbitrary
|
|
||||||
[[row]] <- run $ quickALQuery conn "select format('%I', ? :: varchar)" [toSql (fuzz :: String)]
|
[[row]] <- run $ quickALQuery conn "select format('%I', ? :: varchar)" [toSql (fuzz :: String)]
|
||||||
assert $ fromSql (snd row) == pgFmtIdent (cs fuzz)
|
assert $ fromSql (snd row) == pgFmtIdent (cs fuzz)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user