mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Add a (failing) test that Both coalesces asymmetrically at right.
This commit is contained in:
parent
2ea0fa9109
commit
e7702fd11d
@ -16,3 +16,6 @@ spec = do
|
||||
|
||||
it "should coalesce asymmetrically at left" $
|
||||
(both (Line [True]) (Closed [True]) `coalesce` pure (Line [True]) :: [Both (Line Bool)]) `shouldBe` [both (Line [True, True]) (Closed [True]), both (Line []) (Line [True])]
|
||||
|
||||
it "should coalesce asymmetrically at right" $
|
||||
(both (Closed [True]) (Line [True]) `coalesce` pure (Line [True]) :: [Both (Line Bool)]) `shouldBe` [both (Closed [True]) (Line [True, True]), both (Line [True]) (Line [])]
|
||||
|
Loading…
Reference in New Issue
Block a user