Add failing test for returning () in a pair.
This commit is contained in:
parent
1e633a8dd9
commit
fee867165b
@ -55,6 +55,11 @@ main = do
|
||||
ret <- select $ return $ val (3 :: Int)
|
||||
liftIO $ ret `shouldBe` [ Value 3 ]
|
||||
|
||||
it "works for a pair of a single value and ()" $
|
||||
run $ do
|
||||
ret <- select $ return (val (3 :: Int), ())
|
||||
liftIO $ ret `shouldBe` [ (Value 3, ()) ]
|
||||
|
||||
it "works for a single NULL value" $
|
||||
run $ do
|
||||
ret <- select $ return $ nothing
|
||||
|
||||
Loading…
Reference in New Issue
Block a user