One more test.
This commit is contained in:
parent
a02c68d3bf
commit
15121a7d27
10
test/Test.hs
10
test/Test.hs
@ -106,6 +106,16 @@ main = do
|
||||
where_ (p ^. PersonName ==. val "John")
|
||||
return p
|
||||
liftIO $ ret `shouldBe` [ Entity p1k p1 ]
|
||||
it "works for a simple example with (==.) and (||.)" $
|
||||
run $ do
|
||||
p1k <- insert p1
|
||||
p2k <- insert p2
|
||||
_ <- insert p3
|
||||
ret <- select $
|
||||
from $ \p -> do
|
||||
where_ (p ^. PersonName ==. val "John" ||. p ^. PersonName ==. val "Rachel")
|
||||
return p
|
||||
liftIO $ ret `shouldBe` [ Entity p1k p1, Entity p2k p2 ]
|
||||
it "works for a simple example with (>.)" $
|
||||
run $ do
|
||||
p1k <- insert p1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user