1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00
semantic/test/Data/Range/Spec.hs

12 lines
275 B
Haskell
Raw Normal View History

2018-10-31 19:46:52 +03:00
{-# LANGUAGE ScopedTypeVariables #-}
module Data.Range.Spec where
import Data.Range
import SpecHelpers
spec :: Spec
spec = describe "Data.Range" $
prop "should have an associative Semigroup instance" $
\(a, b, c) -> a <> (b <> c) `shouldBe` (a <> b) <> (c :: Range)