Skip to content

Commit

Permalink
add another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
parsonsmatt committed Jan 6, 2025
1 parent 43edb06 commit 269945e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/Common/Test.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedLabels #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
Expand Down Expand Up @@ -2508,7 +2509,19 @@ testOverloadedRecordDot = describe "OverloadedRecordDot" $ do
where_ $ lord.dogs >=. just (val 10)
where_ $ joinV lord.dogs >=. just (just (val 10))
where_ $ lord.dogs >=. just (val (Just 10))
pure lord

itDb "i didn't bork ?." $ do
weights <- select $ do
(pro :& per) <- Experimental.from $
table @Profile
`leftJoin` table @Person
`Experimental.on` do
\(pro :& per) ->
just (pro ^. #person) ==. per ?. #id
&&. just pro.person ==. per ?. PersonId
pure $ per ?. #weight
asserting $ do
weights `shouldBe` ([] :: [Value (Maybe Int)])



Expand Down

0 comments on commit 269945e

Please sign in to comment.