mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Test union
asymmetry.
This commit is contained in:
parent
79d5e38b26
commit
e9cac45f65
@ -16,6 +16,9 @@ spec = do
|
||||
it "should return those elements in either a or b" $
|
||||
Map.union a b `shouldBe` (Map.fromList $ Map.toList a ++ [ ("d", -4) ])
|
||||
|
||||
it "is asymmetrical" $ do
|
||||
Map.union a b `shouldNotBe` Map.union b a
|
||||
|
||||
describe "unions" $ do
|
||||
it "is the union of multiple maps" $
|
||||
Map.unions [ a, b ] `shouldBe` Map.union a b
|
||||
|
Loading…
Reference in New Issue
Block a user